From ebf76795da6cb23eb26bfdddc664dd49a87effed Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Sun, 18 Feb 2018 21:28:46 +0400 Subject: Change the location of the functions for working with the cache --- lib.php | 34 ---------------------------------- 1 file changed, 34 deletions(-) (limited to 'lib.php') diff --git a/lib.php b/lib.php index 48baebb..b6321e4 100644 --- a/lib.php +++ b/lib.php @@ -44,40 +44,6 @@ function local_webhooks_change_status($serviceid) { return $result; } -/** - * Get data from the cache by key. - * - * @param string $eventname - * @return array - */ -function local_webhooks_cache_get($eventname) { - $cache = cache::make("local_webhooks", "webhooks_services"); - return $cache->get($eventname); -} - -/** - * Update the data in the cache by key. - * - * @param string $eventname - * @param array $recordlist - * @return boolean - */ -function local_webhooks_cache_set($eventname, $recordlist = array()) { - $cache = cache::make("local_webhooks", "webhooks_services"); - return $cache->set($eventname, $recordlist); -} - -/** - * Delete the data in the cache by key. - * - * @param string $eventname - * @return boolean - */ -function local_webhooks_cache_delete($eventname) { - $cache = cache::make("local_webhooks", "webhooks_services"); - return $cache->delete($eventname); -} - /** * Get the record from the database. * -- cgit v1.2.3