Interface CachingProxy.KeyGenerator

  • Enclosing class:
    CachingProxy

    public static interface CachingProxy.KeyGenerator
    An interface for generating cache keys used by the caching invocation handler to cache method results
    • Field Detail

      • DEFAULT

        static final CachingProxy.KeyGenerator DEFAULT
        Default implementation uses the method and argument parameters to generate a cache key
    • Method Detail

      • generate

        CacheKey generate​(Object target,
                          Method method,
                          Object[] args)
        Generate a cache key for the provided target object, method, and arguments.
        Parameters:
        target - the target object
        method - the target method
        args - the arguments passed to the target method
        Returns:
        a cache key instance