com.nostra13.universalimageloader.cache.memory
Interface MemoryCacheAware<K,V>

All Known Implementing Classes:
BaseMemoryCache, FIFOLimitedMemoryCache, FuzzyKeyMemoryCache, LargestLimitedMemoryCache, LimitedAgeMemoryCache, LimitedMemoryCache, LRULimitedMemoryCache, LruMemoryCache, UsingFreqLimitedMemoryCache, WeakMemoryCache

public interface MemoryCacheAware<K,V>

Interface for memory cache

Since:
1.0.0
Author:
Sergey Tarasevich (nostra13[at]gmail[dot]com)

Method Summary
 void clear()
          Remove all items from cache
 V get(K key)
          Returns value by key.
 Collection<K> keys()
          Returns all keys of cache
 boolean put(K key, V value)
          Puts value into cache by key
 void remove(K key)
          Removes item by key
 

Method Detail

put

boolean put(K key,
            V value)
Puts value into cache by key

Returns:
true - if value was put into cache successfully, false - if value was not put into cache

get

V get(K key)
Returns value by key. If there is no value for key then null will be returned.


remove

void remove(K key)
Removes item by key


keys

Collection<K> keys()
Returns all keys of cache


clear

void clear()
Remove all items from cache



Copyright © 2011-2013. All Rights Reserved.