1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-24 22:26:54 +02:00

Move DB to Map

This commit is contained in:
Asim Aslam
2019-06-11 18:21:33 +01:00
parent 43ed8f58f0
commit f81f66c98b
2 changed files with 9 additions and 9 deletions

View File

@ -9,10 +9,10 @@ import (
"github.com/micro/go-micro/sync/time"
)
// DB provides synchronized access to key-value storage.
// Map provides synchronized access to key-value storage.
// It uses the data interface and lock interface to
// provide a consistent storage mechanism.
type DB interface {
type Map interface {
// Read value with given key
Read(key, val interface{}) error
// Write value with given key