com.rubecula.darwin.domain.helper
Interface Cache

All Superinterfaces:
Cache_MBean
All Known Implementing Classes:
Cache_, FitnessCache, PhenotypeCache

public interface Cache
extends Cache_MBean

This defines a general caching mechanism where the cache is made up of entries of the form: key -> value, for example when some significant amount of calculation is required to generate value and we therefore prefer to look it up to see if it's already been calculated. The key is what we use to look it up (and therefore each key should be unique and typically, but not necessarily, point to a different value. TODO consider moving this to the foundation package (along with other Cache-related classes)

Author:
Robin Hillyard

Method Summary
 void flush()
          Clear all entries from the cache
 
Methods inherited from interface com.rubecula.darwin.domain.helper.Cache_MBean
count, isActive, setActive
 

Method Detail

flush

void flush()
Clear all entries from the cache



Copyright © 2010 Rubecula Software, LLC. All Rights Reserved.