Overview

Packages

  • ClipIt
    • clipit
      • api
    • urjc
      • backend
  • Elgg
    • Core
      • Access
      • Authentication
      • Cache
      • Caches
      • Core
      • DataMode
        • Site
      • DataModel
        • Annotations
        • Entities
        • Extender
        • File
        • Importable
        • Loggable
        • Notable
        • Object
        • User
      • DataStorage
      • Exception
      • Exceptions
        • Stub
      • FileStore
        • Disk
      • Groups
      • Helpers
      • HMAC
      • Memcache
      • Metadata
      • Navigation
      • ODD
      • Output
      • Plugins
        • Settings
      • Sessions
      • SocialModel
        • Friendable
        • Locatable
      • WebServicesAPI
      • Widgets
      • XML
      • XMLRPC
    • Exceptions
      • Stub
  • None
  • PHP

Classes

  • ElggMemcache
  • Overview
  • Package
  • Class
  • Tree

Class ElggMemcache

Memcache wrapper class.

ElggCache implements ArrayAccess
Extended by ElggSharedMemoryCache
Extended by ElggMemcache
Package: Elgg\Core\Memcache
Located at ElggMemcache.php
Methods summary
public
# __construct( string $namespace = 'default' )

Connect to memcache.

Connect to memcache.

Parameters

$namespace
string
$namespace The namespace for this cache to write to - note, namespaces of the same name are shared!

Throws

ConfigurationException

Overrides

ElggCache::__construct()
public
# setDefaultExpiry( integer $expires = 0 )

Set the default expiry.

Set the default expiry.

Parameters

$expires
integer
$expires The lifetime as a unix timestamp or time from now. Defaults forever.
public boolean
# save( string $key, string $data, integer $expires = null )

Saves a name and value to the cache

Saves a name and value to the cache

Parameters

$key
string
$key Name
$data
string
$data Value
$expires
integer
$expires Expires (in seconds)

Returns

boolean
public mixed
# load( string $key, integer $offset = 0, integer $limit = null )

Retrieves data.

Retrieves data.

Parameters

$key
string
$key Name of data to retrieve
$offset
integer
$offset Offset
$limit
integer
$limit Limit

Returns

mixed
public boolean
# delete( string $key )

Delete data

Delete data

Parameters

$key
string
$key Name of data

Returns

boolean
public true
# clear( )

Clears the entire cache?

Clears the entire cache?

Returns

true
Methods inherited from ElggSharedMemoryCache
getNamespace(), setNamespace()
Methods inherited from ElggCache
__get(), __isset(), __set(), __unset(), add(), getVariable(), offsetExists(), offsetGet(), offsetSet(), offsetUnset(), setVariable()
API documentation generated by ApiGen 2.8.0