Show / Hide Table of Contents

Class InMemoryIDCache

The in-memory ID cache stores IDs in-memory.

The in-memory ID cache is suitable for applications deployed to a single server. For applications deployed to a web farm, an ID cache implemented using a database or shared state server is required.

Inheritance
object
InMemoryIDCache
Implements
IIDCache
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: ComponentSpace.SAML2.Cache
Assembly: ComponentSpace.Saml2.dll
Syntax
public class InMemoryIDCache : IIDCache

Methods

Add(string, DateTime)

Adds the ID with an associated expiration time to the cache.

Declaration
public bool Add(string id, DateTime expirationDateTime)
Parameters
Type Name Description
string id

The ID.

DateTime expirationDateTime

The expiration time.

Returns
Type Description
bool

true if the ID doesn't already exist in the cache; otherwise false.

Implements

IIDCache
In this article
Back to top Copyright © ComponentSpace Pty Ltd 2004-2025. All rights reserved.