first commit

This commit is contained in:
2024-11-11 18:46:54 +01:00
commit a630d17338
25634 changed files with 4923715 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
<?php
class OauthCachePresta implements OauthCacheInterface
{
const PAYU_CACHE_CONFIG_PREFIX = 'PAYU_';
public function get($key)
{
$cache = Configuration::get(self::PAYU_CACHE_CONFIG_PREFIX . $key);
return $cache === false ? null : unserialize($cache);
}
public function set($key, $value)
{
return Configuration::updateValue(self::PAYU_CACHE_CONFIG_PREFIX . $key, serialize($value));
}
public function invalidate($key)
{
return Configuration::deleteByName(self::PAYU_CACHE_CONFIG_PREFIX . $key);
}
}