You should call this when you have finished using this Cache.
You should call this when you have finished using this Cache. (e.g. when your application shuts down)
It will take care of gracefully shutting down the underlying cache client.
Note that you should not try to use this Cache instance after you have called this method.
Get the value corresponding to the given key from the cache
Get the value corresponding to the given key from the cache
the type of the corresponding value
cache key
the value, if there is one
Insert the given key-value pair into the cache, with an optional Time To Live.
Insert the given key-value pair into the cache, with an optional Time To Live.
the type of the corresponding value
cache key
corresponding value
Time To Live
Remove the given key and its associated value from the cache, if it exists.
Remove the given key and its associated value from the cache, if it exists. If the key is not in the cache, do nothing.
cache key
Delete the entire contents of the cache.
Delete the entire contents of the cache. Use wisely!