51Degrees Pipeline PHP  4.1

51Degrees Pipeline for PHP

fiftyone\pipeline\engines\DataKeyedCache Class Reference

Detailed Description

A simple cache class which has a get and set method Can be added to an engine to cache its results for specific evidence This base class needs to be extended to form an actual cache.

Inheritance diagram for fiftyone\pipeline\engines\DataKeyedCache:

[legend]

Public Member Functions

 get ($cachekey)
Get an item from the cache. More...
 set ($cachekey, $value)
Add a value to the cache This method needs to be implemented in a subclass to work. More...

Member Function Documentation

◆ get()

fiftyone\pipeline\engines\DataKeyedCache::get (   $cachekey )

Get an item from the cache.

This method needs to be implemented in a subclass to work

Parameters
string - cache key
mixed - cache result

◆ set()

fiftyone\pipeline\engines\DataKeyedCache::set (   $cachekey,
  $value  
)

Add a value to the cache This method needs to be implemented in a subclass to work.

Parameters
string - cache key
mixed - cache value