@@ 120-133 (lines=14) @@ | ||
117 | * |
|
118 | * @since __DEPLOY_VERSION__ |
|
119 | */ |
|
120 | public function save(CacheItemInterface $item) |
|
121 | { |
|
122 | // If we are able to find out when the item expires - find out. Else bail. |
|
123 | if ($item instanceof HasExpirationDateInterface) |
|
124 | { |
|
125 | $ttl = $this->convertItemExpiryToSeconds($item); |
|
126 | } |
|
127 | else |
|
128 | { |
|
129 | $ttl = 0; |
|
130 | } |
|
131 | ||
132 | return apcu_store($item->getKey(), $item->get(), $ttl); |
|
133 | } |
|
134 | ||
135 | /** |
|
136 | * Confirms if the cache contains specified cache item. |
@@ 88-101 (lines=14) @@ | ||
85 | * |
|
86 | * @since __DEPLOY_VERSION__ |
|
87 | */ |
|
88 | public function save(CacheItemInterface $item) |
|
89 | { |
|
90 | // If we are able to find out when the item expires - find out. Else bail. |
|
91 | if ($item instanceof HasExpirationDateInterface) |
|
92 | { |
|
93 | $ttl = $this->convertItemExpiryToSeconds($item); |
|
94 | } |
|
95 | else |
|
96 | { |
|
97 | $ttl = 0; |
|
98 | } |
|
99 | ||
100 | return wincache_ucache_set($item->getKey(), $item->get(), $ttl); |
|
101 | } |
|
102 | ||
103 | /** |
|
104 | * Confirms if the cache contains specified cache item. |