<?php

namespace Redis\Db6;


class StatisticsRedisModel extends \Redis\Db6\AbstractModel {

    /**
     * 店铺、商品 评分统计  商品浏览量
     *
     * @var string
     */
    protected $_tableName = 'han_statistics';


    /**
     * 类实例
     */
    private static $_instance = null;
    public function tableCacheGet($id){
        $result = $this->get($this->calcKey($id));
        return $result;
    }
    public function tableCacheSet($id,$data,$experio){
        $res=$this->set($this->calcKey($id), $data,$experio);
        return $res;
    }
    /**
     * 获取类实例
     *
     * @return \Redis\Db0\UserModel
     */
    public static function getInstance() {
        if (!(self::$_instance instanceof self)) {
            self::$_instance = new self();
        }

        return self::$_instance;
    }

}
