Interface CacheService

All Known Implementing Classes:
CacheServiceImpl

public interface CacheService
Author:
Sumer Jabri, Alfonso Vásquez
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addScope(Context context)
    Adds a new scope to the cache for the given context.
    void
    Clears the contents of the entire cache.
    void
    Clears the contents of the scope of the given context.
    get(Context context, Object key)
    Retrieves an item's value from the scope of the given context, or null if not found.
    getItem(Context context, Object key)
    Retrieves an item from the scope of the given context, or null if not found.
    getKeys(Context context)
    Returns a list of the keys of the items present in the scope of the given context.
    Returns the list of scopes this cache manages.
    int
    getSize(Context context)
    Returns the quantity of items present in scope of the given context.
    Returns the statistics for the scope of the given context.
    boolean
    hasKey(Context context, Object key)
    Returns true if there's and item with the specified key in the scope of the given context.
    boolean
    hasScope(Context context)
    Returns true if the scope of the given context exists.
    void
    put(Context context, Object key, Object value)
    Puts an item in the scope of the given context.
    void
    put(Context context, Object key, Object value, CachingOptions cachingOptions, CacheLoader loader, Object... loaderParams)
    Puts and item in the scope of the given context.
    boolean
    remove(Context context, Object key)
    Removes an item from the scope of the given context.
    void
    Removes the scope associated to the given context