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

Public Member Functions

 __construct ($cacheDir=null, $cacheItemExpiry=86400)
 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

Simple FileCache provider

See Also
CacheProviderInterface.php for more information

Member Function Documentation

Mobi_Mtld_DA_CacheProvider_FileCacheProvider::clear ( )

Clears the whole cache repository

Implements Mobi_Mtld_DA_CacheProvider_CacheProviderInterface.

Mobi_Mtld_DA_CacheProvider_FileCacheProvider::delete (   $key)

Removes an item from the repository

Implements Mobi_Mtld_DA_CacheProvider_CacheProviderInterface.

Mobi_Mtld_DA_CacheProvider_FileCacheProvider::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_FileCacheProvider::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: