@@ 75-81 (lines=7) @@ | ||
72 | $result = null; |
|
73 | ||
74 | if ($ttl > 0) { |
|
75 | if ($overwrite) { |
|
76 | if ($this->cache->replace($key, $value, $ttl) === false) { |
|
77 | $result = $this->cache->set($key, $value, $ttl); |
|
78 | } |
|
79 | } else { |
|
80 | $result = $this->cache->set($key, $value, $ttl); |
|
81 | } |
|
82 | } else { |
|
83 | if ($overwrite) { |
|
84 | if ($this->cache->replace($key, $value) === false) { |
|
@@ 83-89 (lines=7) @@ | ||
80 | $result = $this->cache->set($key, $value, $ttl); |
|
81 | } |
|
82 | } else { |
|
83 | if ($overwrite) { |
|
84 | if ($this->cache->replace($key, $value) === false) { |
|
85 | $result = $this->cache->set($key, $value); |
|
86 | } |
|
87 | } else { |
|
88 | $result = $this->cache->set($key, $value); |
|
89 | } |
|
90 | } |
|
91 | ||
92 | $this->logger->info("Execute cache save: " . $key); |