org.mule.api.cache
Interface InvalidatableCachingStrategy


public interface InvalidatableCachingStrategy

Provides invalidation capability to a CachingStrategy


Method Summary
 void invalidate()
          Invalidates all the entries in the cache
 void invalidate(Serializable key)
          Invalidates a given entry from the cache if it exists, otherwise ignores it.
 

Method Detail

invalidate

void invalidate()
Invalidates all the entries in the cache

Throws:
InvalidateCacheException - if there is any error invalidating the cache strategy

invalidate

void invalidate(Serializable key)
                throws InvalidateCacheException
Invalidates a given entry from the cache if it exists, otherwise ignores it.

Parameters:
key - indicates the cache entry to invalidate. Cannot be null.
Throws:
InvalidateCacheException - if there is any error invalidating the cache strategy
IllegalArgumentException - if key has an invalid value


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.