openam-agent-cache
Abstract cache for the OpenAM Policy Agent for NodeJS
Implement this class to use your own cache with any backed with the node-openam-policy-agent
API Docs
Cache
Kind: global abstract class
-
Cache
- new Cache()
- .get(key) ⇒
Promise
- .put(key, value) ⇒
Promise
- .remove(key) ⇒
Promise
- .quit() ⇒
Promise
new Cache()
Abstract Cache class
Promise
cache.get(key) ⇒ Get a single cached item If the entry is not found, reject
Kind: instance method of Cache
Param | Type |
---|---|
key | string |
Promise
cache.put(key, value) ⇒ Store a single cached item (overwrites existing)
Kind: instance method of Cache
Param | Type |
---|---|
key | string |
value | * |
Promise
cache.remove(key) ⇒ Remove a single cached item
Kind: instance method of Cache
Param | Type |
---|---|
key | string |
Promise
cache.quit() ⇒ Closes the client connection
Kind: instance method of Cache