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
System.Object
InMemoryIDCache
Implements
IIDCache
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ComponentSpace.SAML2.Data
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
System.String id

The ID.

System.DateTime expirationDateTime

The expiration time.

Returns
Type Description
System.Boolean

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-2022. All rights reserved.