DeviceAtlas Device API
 All Classes Namespaces Functions Variables
Public Member Functions | List of all members
Mobi_Mtld_DA_CacheProvider_SocketServerProvider Class Reference
Inheritance diagram for Mobi_Mtld_DA_CacheProvider_SocketServerProvider:
Mobi_Mtld_DA_CacheProvider_CacheProvider Mobi_Mtld_DA_CacheProvider_CacheProviderInterface

Public Member Functions

 __construct ($cacheItemExpiry=86400, $socketHost= 'localhost', $socketPort=8484)
 get ($key)
 set ($key, $value)
 delete ($key)
 clear ()

Additional Inherited Members

- Protected Member Functions inherited from Mobi_Mtld_DA_CacheProvider_CacheProvider
 _hash ($string)

Detailed Description

SocketServerProvider provider prototype

See Also
CacheProviderInterface.php for more information

Member Function Documentation

Mobi_Mtld_DA_CacheProvider_SocketServerProvider::clear ( )

Clears the whole cache repository

Implements Mobi_Mtld_DA_CacheProvider_CacheProviderInterface.

Mobi_Mtld_DA_CacheProvider_SocketServerProvider::delete (   $key)

Removes an item from the repository

Implements Mobi_Mtld_DA_CacheProvider_CacheProviderInterface.

Mobi_Mtld_DA_CacheProvider_SocketServerProvider::get (   $key)

Returns values for a given $key

NOTE: Must return null when there are no data!

Implements Mobi_Mtld_DA_CacheProvider_CacheProviderInterface.

Mobi_Mtld_DA_CacheProvider_SocketServerProvider::set (   $key,
  $value 
)

Stores an item in the repository

Implements Mobi_Mtld_DA_CacheProvider_CacheProviderInterface.


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