File "cache.php"
Full Path: /home/vantageo/public_html/cache/cache/cache/cache/cache/cache/cache/.wp-cli/wp-content/plugins/woocommerce-products-filter/ext/by_text/classes/cache.php
File size: 646 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
if (!defined('ABSPATH'))
die('No direct access allowed');
final class WoofTextCache {
private $cache_key = 'wts';
public function __construct() {
}
public function create_key($args) {
return $this->cache_key . md5(json_encode($args));
}
public function set($key, $value) {
wp_cache_set($key, $value );
}
public function get($key) {
return wp_cache_get( $key );
}
public function is($key) {
$data = $this->get($key);
if (false == $data) {
return false;
} else {
return false;
}
}
private function normalize_key($key) {
return substr($key, 7, 23);
}
}