| @@ 34-40 (lines=7) @@ | ||
| 31 | /** |
|
| 32 | * {@inheritdoc} |
|
| 33 | */ |
|
| 34 | public function set($key, $value, $ttl) |
|
| 35 | { |
|
| 36 | $fileName = $this->getFileName($key); |
|
| 37 | $data = self::$strDenyAccess . '|' . $ttl . '|' . serialize($value); |
|
| 38 | ||
| 39 | return file_put_contents($fileName, $data); |
|
| 40 | } |
|
| 41 | ||
| 42 | /** |
|
| 43 | * {@inheritdoc} |
|
| @@ 32-38 (lines=7) @@ | ||
| 29 | /** |
|
| 30 | * {@inheritdoc} |
|
| 31 | */ |
|
| 32 | public function set($key, $value, $ttl) |
|
| 33 | { |
|
| 34 | $fileName = $this->getFileName($key); |
|
| 35 | $data = $ttl.'|'.serialize($value); |
|
| 36 | ||
| 37 | return file_put_contents($fileName, $data); |
|
| 38 | } |
|
| 39 | ||
| 40 | /** |
|
| 41 | * {@inheritdoc} |
|