📦 bump v2.1.2

pull/971/head
Fenny 2020-10-26 07:15:29 +01:00
parent 93cd0c5cc7
commit ba08653c92
1 changed files with 9 additions and 9 deletions

18
app.go
View File

@ -31,7 +31,7 @@ import (
)
// Version of current fiber package
const Version = "2.1.1"
const Version = "2.1.2"
// Map is a shortcut for map[string]interface{}, useful for JSON returns
type Map map[string]interface{}
@ -39,14 +39,14 @@ type Map map[string]interface{}
// Storage interface that is implemented by storage providers for different
// middleware packages like cache, limiter, session and csrf
type Storage interface {
// Get session value. If the ID is not found, it will return an empty []byte
Get(id string) ([]byte, error)
// Set session value. `exp` will be zero for no expiration.
Set(id string, value []byte, exp time.Duration) error
// Delete session value
Delete(id string) error
// Clear clears the storage
Clear() error
// Get session value. If the ID is not found, it will return an empty []byte
Get(id string) ([]byte, error)
// Set session value. `exp` will be zero for no expiration.
Set(id string, value []byte, exp time.Duration) error
// Delete session value
Delete(id string) error
// Clear clears the storage
Clear() error
}
// Handler defines a function to serve HTTP requests.