public function GeocoderPluginInterface::cache_set in Geocoder 7.2
Stores data in the persistent cache.
The reasons for having several bins are as follows:
Parameters
$cid: The cache ID of the data to store.
$data: The data to store in the cache. Complex data types will be automatically serialized before insertion. Strings will be stored as plain text and are not serialized. Some storage engines only allow objects up to a maximum of 1MB in size to be stored by default. When caching large arrays or similar, take care to ensure $data does not exceed this size.
See also
1 method overrides GeocoderPluginInterface::cache_set()
- GeocoderPlugin::cache_set in src/
Plugin/ GeocoderPlugin.php - Stores data in the persistent cache.
File
- src/
Plugin/ GeocoderPluginInterface.php, line 55
Class
Namespace
Drupal\geocoder\PluginCode
public function cache_set($cid, $data);