| @@ 53-62 (lines=10) @@ | ||
| 50 | * |
|
| 51 | * @return bool|mixed|string |
|
| 52 | */ |
|
| 53 | public function _get($name) |
|
| 54 | { |
|
| 55 | $name = $this->createFileName($name); |
|
| 56 | $data = $this->redis->get($name); |
|
| 57 | if ($data) { |
|
| 58 | $data = $this->unpackData($data); |
|
| 59 | } |
|
| 60 | ||
| 61 | return $data; |
|
| 62 | } |
|
| 63 | ||
| 64 | /** |
|
| 65 | * 根据缓存名 设置缓存值和超时时间. |
|
| @@ 53-62 (lines=10) @@ | ||
| 50 | * |
|
| 51 | * @return bool|mixed|string |
|
| 52 | */ |
|
| 53 | public function _get($name) |
|
| 54 | { |
|
| 55 | $name = $this->createFileName($name); |
|
| 56 | $data = $this->redis->get($name); |
|
| 57 | if ($data) { |
|
| 58 | $data = $this->unpackData($data); |
|
| 59 | } |
|
| 60 | ||
| 61 | return $data; |
|
| 62 | } |
|
| 63 | ||
| 64 | /** |
|
| 65 | * 根据缓存名 设置缓存值和超时时间. |
|