Bug 17189: Add the ability to define several memcached namespaces - Koha::Caches
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 22 Jun 2016 15:01:46 +0000 (16:01 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Thu, 8 Sep 2016 10:24:46 +0000 (10:24 +0000)
commit9d1dbb96cb751632b8959c99a51ab75031ed2294
tree1fa1b88faae75281ee5efb59efaf4270242985b1
parentba9b55d5ca56231c887cc3d818071f72e390a8a7
Bug 17189: Add the ability to define several memcached namespaces - Koha::Caches

We need to define several namespaces for our cache system.
For instance sysprefs, koha conf (koha-conf.xml) and unit tests
should be defined in a separate namespace.
This will permit to
- launch the tests without interfering with other cache values
- and flush the sysprefs cache without flushing all other values

To do so, we need to store different Koha::Cache objects at a package
level. That's why this patch adds a new Koha::Caches module.

FIXME: There is an architecture problem here: the L1 cache should be
defined in Koha::Cache

Signed-off-by: Jacek Ablewicz <abl@biblos.pk.edu.pl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
https://bugs.koha-community.org/show_bug.cgi?id=11921

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
C4/Context.pm
Koha/Cache.pm
Koha/Caches.pm [new file with mode: 0644]
debian/templates/plack.psgi
misc/plack/koha.psgi
t/Cache.t