Interface ICache

  • All Superinterfaces:
    Serializable
    All Known Implementing Classes:
    MapCache

    public interface ICache
    extends Serializable
    Interface use for Cache
    Author:
    Patrick Vandermaesen
    • Method Detail

      • getName

        String getName()
        get the name of the cache.
        Returns:
      • get

        Object get​(String key)
        get a item from cache.
        Parameters:
        key -
        Returns:
      • put

        void put​(String key,
                 Object item)
        add item to cache
        Parameters:
        key - the key of item
      • removeItem

        boolean removeItem​(String key)
        remove item and return true if removed.
        Parameters:
        key -
        Returns:
      • removeAll

        void removeAll()
        remove all items from cache.
      • getSize

        int getSize()
        return the number of items contains in Cache.
        Returns:
      • getKeys

        Collection<String> getKeys()
        return all keys contains in cache.
        Returns: