mirror of
https://github.com/gofiber/storage.git
synced 2025-10-01 06:42:18 +08:00
✏ update signatures
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user