From 4fa94bb7f73a705293c2afd40fc1151a3aaa04e2 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Wed, 5 May 2021 16:39:22 +0300 Subject: - Initial broadcast commit Signed-off-by: Valery Piashchynski --- plugins/kv/drivers/memcached/driver.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/kv/drivers/memcached/driver.go') diff --git a/plugins/kv/drivers/memcached/driver.go b/plugins/kv/drivers/memcached/driver.go index 17b06fa0..02281ed5 100644 --- a/plugins/kv/drivers/memcached/driver.go +++ b/plugins/kv/drivers/memcached/driver.go @@ -9,6 +9,7 @@ import ( "github.com/spiral/roadrunner/v2/plugins/config" "github.com/spiral/roadrunner/v2/plugins/kv" "github.com/spiral/roadrunner/v2/plugins/logger" + "github.com/spiral/roadrunner/v2/utils" ) type Driver struct { @@ -148,7 +149,7 @@ func (d *Driver) Set(items ...kv.Item) error { memcachedItem := &memcache.Item{ Key: items[i].Key, // unsafe convert - Value: []byte(items[i].Value), + Value: utils.AsBytes(items[i].Value), Flags: 0, } -- cgit v1.2.3