✏ update signatures

This commit is contained in:
Fenny
2020-11-05 09:47:33 +01:00
parent f7e5345bc3
commit fdf31cf4c0
8 changed files with 45 additions and 1 deletions

View File

@@ -11,6 +11,13 @@ A Postgres storage driver using [lib/pq](https://github.com/lib/pq).
### Signatures
```go
func New(config ...Config) Storage
var ErrNotExist = errors.New("key does not exist")
func (s *Storage) Get(key string) ([]byte, error)
func (s *Storage) Set(key string, val []byte, exp time.Duration) error
func (s *Storage) Delete(key string) error
func (s *Storage) Clear() error
```
### Examples