3 namespace Drupal\advagg\State;
5 use Drupal\Core\Cache\CacheBackendInterface;
6 use Drupal\Core\KeyValueStore\KeyValueFactoryInterface;
7 use Drupal\Core\Lock\LockBackendInterface;
8 use Drupal\Core\State\StateInterface;
11 * Provides AdvAgg with saved aggregrate information using a key value store.
13 class Aggregates extends State implements StateInterface {
16 * Constructs the State object.
18 * @param \Drupal\Core\KeyValueStore\KeyValueFactoryInterface $key_value_factory
19 * The key value store to use.
20 * @param \Drupal\Core\Cache\CacheBackendInterface $cache
21 * The cache object to use.
22 * @param \Drupal\Core\Lock\LockBackendInterface $lock
23 * The lock object to use.
25 public function __construct(KeyValueFactoryInterface $key_value_factory, CacheBackendInterface $cache, LockBackendInterface $lock) {
26 parent::__construct($key_value_factory, $cache, $lock);
27 $this->keyValueStore = $key_value_factory->get('advagg_aggregates');
28 $this->pathColumn = 'uri';