Page MenuHomeDevCentral

D3864.diff
No OneTemporary

D3864.diff

diff --git a/cache/src/Engines/CacheRedis.php b/cache/src/Engines/CacheRedis.php
--- a/cache/src/Engines/CacheRedis.php
+++ b/cache/src/Engines/CacheRedis.php
@@ -86,8 +86,9 @@
null|int|DateInterval $ttl = null
) : bool {
try {
+ $value = serialize($value);
if ($ttl === null) {
- $this->redis->set($key, serialize($value));
+ $this->redis->set($key, $value);
} else {
$this->redis->setex($key, self::parse_interval($ttl), $value);
}
diff --git a/composer.json b/composer.json
--- a/composer.json
+++ b/composer.json
@@ -40,7 +40,7 @@
"ext-redis": "*"
},
"replace": {
- "keruald/cache": "0.1.0",
+ "keruald/cache": "0.1.1",
"keruald/commands": "0.0.1",
"keruald/database": "0.6.1",
"keruald/github": "0.2.1",

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 13, 05:40 (21 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3162649
Default Alt Text
D3864.diff (890 B)

Event Timeline