.

MemcacheCacheItem Class Reference
[Memcache]

Cache Item for Memcache. More...

Inheritance diagram for MemcacheCacheItem:
ICacheItem

List of all members.

Public Member Functions

  __construct ($item_data)
  Constructor.
  get_content_compressed ()
  Return the content gzip compressed.
  get_content_plain ()
  Return the content in plain form.
  get_creationdate ()
  Return creation date.
  get_data ()
  Return data associated with this item.
  get_expirationdate ()
  Return expiration date.

Detailed Description

Cache Item for Memcache.

Author:
Gerd Riesselmann

Definition at line 8 of file cache.memcache.impl.php.


Constructor & Destructor Documentation

MemcacheCacheItem::__construct ( item_data  ) 

Constructor.

Parameters:
array  $item_data

Definition at line 21 of file cache.memcache.impl.php.

00021                                                 {
00022                 $this->item_data = $item_data;
00023         }

Member Function Documentation

MemcacheCacheItem::get_content_compressed (  ) 

Return the content gzip compressed.

Returns:
string

Implements ICacheItem.

Definition at line 70 of file cache.memcache.impl.php.

00070                                                  {
00071                 return $this->item_data['content'];
00072         }       
MemcacheCacheItem::get_content_plain (  ) 

Return the content in plain form.

Returns:
string

Implements ICacheItem.

Definition at line 57 of file cache.memcache.impl.php.

00057                                             {
00058                 $ret = $this->get_content_compressed();
00059                 if ($ret && function_exists('gzinflate')) {
00060                         $ret = gzinflate($ret);
00061                 }
00062                 return $ret;
00063         }
MemcacheCacheItem::get_creationdate (  ) 

Return creation date.

Returns:
datetime

Implements ICacheItem.

Definition at line 30 of file cache.memcache.impl.php.

00030                                            {
00031                 return $this->item_data['creationdate'];
00032         }       
MemcacheCacheItem::get_data (  ) 

Return data associated with this item.

Returns:
mixed

Implements ICacheItem.

Definition at line 48 of file cache.memcache.impl.php.

00048                                    {
00049                 return $this->item_data['data'];
00050         }
MemcacheCacheItem::get_expirationdate (  ) 

Return expiration date.

Returns:
datetime

Implements ICacheItem.

Definition at line 39 of file cache.memcache.impl.php.

00039                                              {
00040                 return $this->item_data['expirationdate'];
00041         }

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