BaiduCache.php 589 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * @link:http://www.gdqijianshi.com/
  4. * @copyright: Copyright (c) 2020 广东七件事集团
  5. * 商品缓存类
  6. * Author: zal
  7. * Date: 2020-04-24
  8. * Time: 16:55
  9. */
  10. namespace common\components\sensitivewords;
  11. class BaiduCache extends BaseCache
  12. {
  13. public function addCache($id, $value,$duration)
  14. {
  15. return $this->setValue("BaiduCache".$id, $value,$duration);
  16. }
  17. public function getCache($id)
  18. {
  19. return $this->getValue("BaiduCache".$id);
  20. }
  21. public function delCache($id)
  22. {
  23. return $this->deleteValue("BaiduCache".$id);
  24. }
  25. }