\Visionline\Crm\WebApiCache

Specifies the interface for a cache.

Implementors have to make sure, that the cache doesn't get corrupted by concurrent calls to the get and put methods. It is recommended to periodically invalidate the data in the cache, to ensure that data that is referenced by an entity gets refeshed.

Summary

Methods
Constants
get()
put()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

get()

get(string  $key) : mixed

Returns the data stored under the specified key.

Parameters

string $key

The key under which the data is stored

Warning: count(): Parameter must be an array or an object that implements Countable in phar://E:/source/CRM-VISIONLINE/3.4.2/Source/Website/build/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1376 Warning: count(): Parameter must be an array or an object that implements Countable in phar://E:/source/CRM-VISIONLINE/3.4.2/Source/Website/build/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1376

Returns

mixed —

The data stored under the specified key.

put()

put(string  $key, mixed  $data) 

Stores the data under the specified key

Parameters

string $key

The key under which to store the data

mixed $data

The data to store

Warning: count(): Parameter must be an array or an object that implements Countable in phar://E:/source/CRM-VISIONLINE/3.4.2/Source/Website/build/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1376 Warning: count(): Parameter must be an array or an object that implements Countable in phar://E:/source/CRM-VISIONLINE/3.4.2/Source/Website/build/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1376