My Project
 All Data Structures Namespaces Functions Variables
Public Member Functions
CI_Cache_apc Class Reference
Inheritance diagram for CI_Cache_apc:
CI_Driver

Public Member Functions

 get ($id)
 
 save ($id, $data, $ttl=60)
 
 delete ($id)
 
 clean ()
 
 cache_info ($type=NULL)
 
 get_metadata ($id)
 
 is_supported ()
 
- Public Member Functions inherited from CI_Driver
 decorate ($parent)
 
 __call ($method, $args=array())
 
 __get ($var)
 
 __set ($var, $val)
 

Additional Inherited Members

- Protected Attributes inherited from CI_Driver
 $parent
 

Member Function Documentation

cache_info (   $type = NULL)

Cache Info

Parameters
stringuser/filehits
Returns
mixed array on success, false on failure
clean ( )

Clean the cache

Returns
boolean false on failure/true on success
delete (   $id)

Delete from Cache

Parameters
mixedunique identifier of the item in the cache
booleantrue on success/false on failure
get (   $id)

Get

Look for a value in the cache. If it exists, return the data if not, return FALSE

Parameters
string
Returns
mixed value that is stored/FALSE on failure
get_metadata (   $id)

Get Cache Metadata

Parameters
mixedkey to get cache metadata on
Returns
mixed array on success/false on failure
is_supported ( )

is_supported()

Check to see if APC is available on this system, bail if it isn't.

save (   $id,
  $data,
  $ttl = 60 
)

Cache Save

Parameters
stringUnique Key
mixedData to store
intLength of time (in seconds) to cache the data
Returns
boolean true on success/false on failure

The documentation for this class was generated from the following file: