mirror of
https://github.com/skidoodle/pastebin
synced 2025-10-14 09:44:48 +02:00
v2
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
package store
|
||||
|
||||
type store interface {
|
||||
Get(key string) (string, bool)
|
||||
Set(key string, value string)
|
||||
Del(key string)
|
||||
// Store is the interface for a key-value store.
|
||||
type Store interface {
|
||||
Get(key string) (string, bool, error)
|
||||
Set(key, value string) error
|
||||
Del(key string) error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user