Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 1.49 KB

File metadata and controls

52 lines (36 loc) · 1.49 KB

LiquidCache

Kind: global abstract class
Author: FlaringPhoenix

new LiquidCache(defaultExpiration)

Param Default Description
defaultExpiration 60000

Default expiration time in milliseconds (Default: 60000)

liquidCache.set(key, value, expiration) ⇒

Sets a key-value pair in the cache

Kind: instance method of LiquidCache
Returns:

The cache instance

Param Description
key

Key to set

value

Value to be stored within key

expiration

(Optional) Expiration time in milliseconds (Default: 60000)

liquidCache.delete(key) ⇒

Pop's an element from the cache

Kind: instance method of LiquidCache
Returns:

The value stored within the key

Param Description
key

Key to get

liquidCache.clear()

Clears the entire cache and all timeouts

Kind: instance method of LiquidCache