summaryrefslogtreecommitdiff
path: root/plugins/memcached
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/memcached')
-rw-r--r--plugins/memcached/memcachedkv/config.go (renamed from plugins/memcached/config.go)2
-rw-r--r--plugins/memcached/memcachedkv/driver.go (renamed from plugins/memcached/driver.go)4
-rw-r--r--plugins/memcached/plugin.go3
3 files changed, 6 insertions, 3 deletions
diff --git a/plugins/memcached/config.go b/plugins/memcached/memcachedkv/config.go
index 6d413790..569e2573 100644
--- a/plugins/memcached/config.go
+++ b/plugins/memcached/memcachedkv/config.go
@@ -1,4 +1,4 @@
-package memcached
+package memcachedkv
type Config struct {
// Addr is url for memcached, 11211 port is used by default
diff --git a/plugins/memcached/driver.go b/plugins/memcached/memcachedkv/driver.go
index e24747fe..6d5e1802 100644
--- a/plugins/memcached/driver.go
+++ b/plugins/memcached/memcachedkv/driver.go
@@ -1,4 +1,4 @@
-package memcached
+package memcachedkv
import (
"strings"
@@ -246,3 +246,5 @@ func (d *Driver) Clear() error {
return nil
}
+
+func (d *Driver) Stop() {}
diff --git a/plugins/memcached/plugin.go b/plugins/memcached/plugin.go
index 59a2b7cb..47bca0e2 100644
--- a/plugins/memcached/plugin.go
+++ b/plugins/memcached/plugin.go
@@ -5,6 +5,7 @@ import (
"github.com/spiral/roadrunner/v2/common/kv"
"github.com/spiral/roadrunner/v2/plugins/config"
"github.com/spiral/roadrunner/v2/plugins/logger"
+ "github.com/spiral/roadrunner/v2/plugins/memcached/memcachedkv"
)
const (
@@ -39,7 +40,7 @@ func (s *Plugin) Available() {}
func (s *Plugin) KVConstruct(key string) (kv.Storage, error) {
const op = errors.Op("boltdb_plugin_provide")
- st, err := NewMemcachedDriver(s.log, key, s.cfgPlugin)
+ st, err := memcachedkv.NewMemcachedDriver(s.log, key, s.cfgPlugin)
if err != nil {
return nil, errors.E(op, err)
}