Monday 27 June 2022

Exploring Ehcache cache object

'org.ehcache.Cache' class provide method to perform create, access, update and delete mappings of key to value.

      Ehcache: Put an element into the cache
      Ehcache: Get the value associated with given key
      Ehcache: Check for the key existence in the cache
      Ehcache: Remove the entry from cache
      Ehcache: Get all the values associated with given keys
      Ehcache: bulk cache writing support using putAll method
      Ehcache: Remove multiple elements from the cache
      Ehcache: Remove all the elements from the cache
      Ehcache: putIfAbsent: Insert when the key is not exist in the cache
      Ehcache: remove the entry only when the cache has given value
      Ehcache: replace: Replace the entry when the entry is not expired
      Ehcache: Replace the entry when the key mapped to given value
      Ehcache: get run time configurations of cache
      Ehcache: Print all the cache elements using iterator
      Ehcache: Set the expiry time at cache level
      Ehcache: programmatically set expiry time to a cache entry
      Ehcache: Configure a cache using xml file
      Ehcache: Store the cache data to disk

 

 

Previous                                                 Next                                                 Home

No comments:

Post a Comment