The increment method will increment the given key if found otherwise nonthing will occur. Returns true if key is incremented otherwise false will be returned. An error will thrown if the key is not a number.
The put method replaces a key if the key exists including the ttl value or adds key that do not exists with a given ttl. Returns true if the key where replaced otherwise false is returned. You must provide a ttl value. If null is passed, the item will not expire.
The update method updates a key. Returns true if the key where updated otherwise false will be returned.
The withGroup method returns a new ICacheAdapter instance that groups keys together. Only keys in the group can be updated, removed, or retrieved, leaving keys outside the group unaffected.
The ICacheAdapter contract defines a way for storing data as key-value pairs independent of data storage. This interface is not meant to be used directly, instead you should use ICache