@@ 39-46 (lines=8) @@ | ||
36 | /** |
|
37 | * {@inheritdoc} |
|
38 | */ |
|
39 | public function save($id, $data, $ttl = 0) |
|
40 | { |
|
41 | return $this->decorated->save( |
|
42 | $id, |
|
43 | $this->callAndTime([$this, 'encrypt'], [$data, $id]), |
|
44 | $ttl |
|
45 | ); |
|
46 | } |
|
47 | ||
48 | /** |
|
49 | * {@inheritdoc} |
@@ 57-67 (lines=11) @@ | ||
54 | } |
|
55 | } |
|
56 | ||
57 | public function save($id, $data, $ttl = 0) |
|
58 | { |
|
59 | return $this->decorated->save( |
|
60 | $id, |
|
61 | (string) $this->callAndTime( |
|
62 | [$this->iron, 'encrypt'], |
|
63 | [$this->password, $data, $ttl] |
|
64 | ), |
|
65 | $ttl |
|
66 | ); |
|
67 | } |
|
68 | ||
69 | public function delete($id) |
|
70 | { |