Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (29 sloc) 893 Bytes

Disk

Implements the CacheInteface using as the hard disk as the cache backend.

__construct

__construct($path)
$path:Directory to store the cache files - default /tmp/dalmp_cache.

Constants

define('DALMP_CACHE_DIR', '/tmp/dalmp/cache/');

Defines where to store the cache when using 'dir' cache type.

This means that if no $path is passed as an argument to the __construct before using the default value will try to get a path from the DALMP_CACHE_DIR constant if set.

Example

.. seealso::

   `Cache Examples <https://github.com/nbari/DALMP/tree/master/examples/cache>`_.