Interface ICache<T,V>

All Superinterfaces:
Cloneable
All Known Implementing Classes:
AbstractCache, AbstractGroupsCache, BlockCache, BlockGroupsCache, GroupCache, GroupsCache, MessagesCache

public interface ICache<T,V> extends Cloneable
Author:
Serhiy_Zahriychuk
  • Method Summary

    Modifier and Type
    Method
    Description
    get(T key)
    Returns value by input key.
    void
    put(T key, V value)
    Puts the value by key into cache.
  • Method Details

    • put

      void put(T key, V value)
      Puts the value by key into cache.
      Parameters:
      key - Key of input value.
      value - The instance that contains concrete value for input key.
    • get

      V get(T key)
      Returns value by input key.
      Parameters:
      key - Input key.
      Returns:
      Instance of value.