Cache/Simple.php
- Classes
- Kwf_Cache_Simple
\Kwf_Cache_Simple
 Properties Properties
- $backend
- $memcacheHost
- $memcachePort
 Methods Methods
- _getFileNameForCacheId
- add
- clear
- delete
- fetch
- getBackend
- getMemcache
- getUniquePrefix
- getZendCache
- resetZendCache
Description
A simple and fast cache. Doesn't have all the Zend_Cache bloat.
If available it uses apc user cache or memcache directly (highly recommended!!), else it falls back to Zend_Cache using a (slow) file backend.
If aws.simpleCacheCluster is set Aws ElastiCache will be used.
Properties
$backend
 $backend = ''
 Details
 Details
- visibility
- public
- default
- final
- false
- static
- true
$memcacheHost
 $memcacheHost = ''
 Details
 Details
- visibility
- public
- default
- final
- false
- static
- true
$memcachePort
 $memcachePort = ''
 Details
 Details
- visibility
- public
- default
- final
- false
- static
- true
Methods
_getFileNameForCacheId
_getFileNameForCacheId(
           $cacheId
          )
        
        :
        Arguments
- $cacheId
 Details
 Details
- visibility
- public
- final
- false
- static
- true
add
add(
           $cacheId,  $data,  $ttl
              =
              null
          )
        
        :
        Arguments
- $cacheId
- $data
- $ttl
 Details
 Details
- visibility
- public
- final
- false
- static
- true
clear
clear(
           $cacheIdPrefix
          )
        
        :
        Arguments
- $cacheIdPrefix
 Details
 Details
- visibility
- public
- final
- false
- static
- true
delete
delete(
           $cacheIds
          )
        
        :
        Arguments
- $cacheIds
 Details
 Details
- visibility
- public
- final
- false
- static
- true
fetch
fetch(
           $cacheId,  $success
              =
              true
          )
        
        :
        Arguments
- $cacheId
- $success
 Details
 Details
- visibility
- public
- final
- false
- static
- true
getBackend
getBackend(
          
          )
        
        :
        
 Details
 Details
- visibility
- public
- final
- false
- static
- true
getMemcache
getMemcache(
          
          )
        
        :
        
 Details
 Details
- visibility
- public
- final
- false
- static
- true
getUniquePrefix
getUniquePrefix(
          
          )
        
        :
        
 Details
 Details
- visibility
- public
- final
- false
- static
- true
getZendCache
getZendCache(
          
          )
        
        :
        
 Details
 Details
- visibility
- public
- final
- false
- static
- true
resetZendCache
resetZendCache(
          
          )
        
        :
        
 Details
 Details
- visibility
- public
- final
- false
- static
- true