Permanent Cache Bin
Categories
Component ID
2901688
Component name
Permanent Cache Bin
Component type
module
Maintenance status
Development status
Component security advisory coverage
covered
Downloads
1127
Component created
Component changed
Component body
At times we need to cache some values which are not related to Drupal config or data but are coming from external systems and which don't really need to be deleted when clearing (rebuilding) Drupal cache.
This module provides a way to use Drupal cache but still keep it separate from drush cr.
Code to use this new backend in your bin (here stock is just for example):
cache.stock:
class: DrupalCoreCacheCacheBackendInterface
tags:
- { name: cache.bin, default_backend: cache.backend.permanent_database }
factory: cache_factory:get
arguments: [stock]
Update1: Memcache support is added through pcb_memcache sub-module.
