Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12610594
D3864.id10005.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
890 B
Referenced Files
None
Subscribers
None
D3864.id10005.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 13, 06:51 (22 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3162649
Default Alt Text
D3864.id10005.diff (890 B)
Attached To
Mode
D3864: Serialize Redis cached data with TTl too
Attached
Detach File
Event Timeline
Log In to Comment