MDL-25290 cache: Cache API integration with core
[moodle.git] / lib / db / caches.php
... / ...
CommitLineData
1<?php
2
3$definitions = array(
4 // Default cache for locking
5 'locking' => array(
6 'mode' => cache_store::MODE_APPLICATION,
7 'mappingsonly' => true,
8 ),
9 'string' => array(
10 'mode' => cache_store::MODE_APPLICATION,
11 'component' => 'core',
12 'area' => 'string',
13 'persistent' => true,
14 'persistentmaxsize' => 3
15 ),
16 'databasemeta' => array(
17 'mode' => cache_store::MODE_APPLICATION,
18 'requireidentifiers' => array(
19 'dbfamily'
20 ),
21 'persistent' => true,
22 'persistentmaxsize' => 2
23 ),
24 'config' => array(
25 'mode' => cache_store::MODE_APPLICATION,
26 'persistent' => true
27 ),
28 // Event invalidation cache
29 'eventinvalidation' => array(
30 'mode' => cache_store::MODE_APPLICATION,
31 'persistent' => true,
32 'requiredataguarantee' => true
33 )
34);