mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 18:37:05 +00:00
update dependencies
This commit is contained in:
6
_examples/database/mysql/cache/groupcache.go
vendored
6
_examples/database/mysql/cache/groupcache.go
vendored
@@ -16,8 +16,8 @@ import (
|
||||
// Service that cache will use to retrieve data.
|
||||
type Service interface {
|
||||
RecordInfo() sql.Record
|
||||
GetByID(ctx context.Context, dest interface{}, id int64) error
|
||||
List(ctx context.Context, dest interface{}, opts sql.ListOptions) error
|
||||
GetByID(ctx context.Context, dest any, id int64) error
|
||||
List(ctx context.Context, dest any, opts sql.ListOptions) error
|
||||
}
|
||||
|
||||
// Cache is a simple structure which holds the groupcache and the database service, exposes
|
||||
@@ -53,7 +53,7 @@ func (c *Cache) Get(ctx context.Context, key string, dest groupcache.Sink) error
|
||||
return sql.ErrUnprocessable
|
||||
}
|
||||
|
||||
var v interface{}
|
||||
var v any
|
||||
|
||||
prefix := key[0:1]
|
||||
key = key[1:]
|
||||
|
||||
Reference in New Issue
Block a user