$cacheKey = CacheProvider::getKeyName(__METHOD__); $data = CacheProvider::getInstance(false, CacheProvider::SYSTEM_MEMCACHED)->get($cacheKey); if (false === $data) { $data = Db::getInstance()->executeS('SELECT * FROM `'._DB_PREFIX_.'customer` LIMIT 2', true, false); CacheProvider::getInstance(false, CacheProvider::SYSTEM_MEMCACHED)->set($cacheKey, $data, 60 * 60 * 24); } return $data;
public function getProductByFilters