1.1.0 • Published 8 years ago
openam-agent-cache v1.1.0
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
cache.get(key) ⇒ Promise
Get a single cached item If the entry is not found, reject
Kind: instance method of Cache
Param | Type |
---|---|
key | string |
cache.put(key, value) ⇒ Promise
Store a single cached item (overwrites existing)
Kind: instance method of Cache
Param | Type |
---|---|
key | string |
value | * |
cache.remove(key) ⇒ Promise
Remove a single cached item
Kind: instance method of Cache
Param | Type |
---|---|
key | string |
cache.quit() ⇒ Promise
Closes the client connection
Kind: instance method of Cache