22 lines
547 B
PHP
Executable File
22 lines
547 B
PHP
Executable File
<?php
|
|
|
|
class TrustedShopsCache{
|
|
|
|
const CONTROLLER_NAME = 'TrustedShopsCache';
|
|
const TTL = 86400; //2 days
|
|
|
|
public static function getReviewIndicatorCache($tsId)
|
|
{
|
|
if(class_exists('CacheRedis')){
|
|
return CacheRedis::getInstance()->get($tsId, self::CONTROLLER_NAME);
|
|
}
|
|
}
|
|
|
|
public static function setReviewIndicatorCache($ts_id, $content)
|
|
{
|
|
if(class_exists('CacheRedis')){
|
|
return CacheRedis::getInstance()->set($ts_id,self::CONTROLLER_NAME,$content,self::TTL);
|
|
}
|
|
}
|
|
|
|
} |