public interface IdenticonCache
Represents a I2P identiconcache.
  • Method Summary

    All Methods
    Modifier and Type
    Method
    Description
    void
    add(String key, byte[] imageData)
    Adds image data to the cache.
    byte[]
    get(String key)
    Retrieves cached image data for the given key.
    void
    Removes cached image data for the given key.
    void
    Removes all entries from the cache.
  • Method Details

    • get

      byte[] get(String key)
      Retrieves cached image data for the given key.
      Parameters:
      key - the cache key
      Returns:
      the image data, or null if not cached
    • add

      void add(String key, byte[] imageData)
      Adds image data to the cache.
      Parameters:
      key - the cache key
      imageData - the image data to cache
    • remove

      void remove(String key)
      Removes cached image data for the given key.
      Parameters:
      key - the cache key
    • removeAll

      void removeAll()
      Removes all entries from the cache.