summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/scripting.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/scripting.c b/src/scripting.c
index 056945a55..5539f40da 100644
--- a/src/scripting.c
+++ b/src/scripting.c
@@ -373,8 +373,7 @@ cleanup:
* (we must be the only owner) for us to cache it. */
if (j < LUA_CMD_OBJCACHE_SIZE &&
o->refcount == 1 &&
- (o->encoding == REDIS_ENCODING_RAW ||
- o->encoding == REDIS_ENCODING_EMBSTR) &&
+ o->encoding == REDIS_ENCODING_RAW &&
sdslen(o->ptr) <= LUA_CMD_OBJCACHE_MAX_LEN)
{
struct sdshdr *sh = (void*)(((char*)(o->ptr))-(sizeof(struct sdshdr)));