/wheels/cache/storage/AbstractStorage.cfc

http://cfwheels.googlecode.com/ · ColdFusion CFScript · 28 lines · 20 code · 8 blank · 0 comment · 0 complexity · 9ea04f9d2bf6ea5c1b4078439a5809da MD5 · raw file

  1. <cfinterface>
  2. <cffunction name="isAvailable" access="public" description="Method to determine if the cache can be used" output="false" returntype="boolean" />
  3. <cffunction name="set" access="public" description="Add a specified key and value to the storage mechanism." output="false" returntype="void">
  4. <cfargument name="key" type="string" required="true">
  5. <cfargument name="value" type="any" required="true">
  6. </cffunction>
  7. <cffunction name="get" access="public" description="Get a specified key from the storage mechanism." output="false" returntype="any">
  8. <cfargument name="key" type="string" required="true">
  9. </cffunction>
  10. <cffunction name="evict" access="public" description="Decides what items to remove from the cache using the supplied strategy object." output="false" returntype="numeric">
  11. <cfargument name="keys" type="array" required="false">
  12. <cfargument name="strategy" type="any" required="true">
  13. <cfargument name="currentTime" type="date" required="true">
  14. </cffunction>
  15. <cffunction name="delete" access="public" description="Deletes a specified key from the storage mechanism." output="false" returntype="void">
  16. <cfargument name="key" type="string" required="true">
  17. </cffunction>
  18. <cffunction name="count" access="public" description="Return the number of items in the cache." output="false" returntype="numeric" />
  19. <cffunction name="flush" access="public" description="Destroys everything in the cache." output="false" returntype="void" />
  20. </cfinterface>