/
githubmirror
/
GoFrame
Обзор
Документация
Войти
/
githubmirror
/
GoFrame
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
database/gredis/gredis_redis_group_script.go
30 строк
1 KB
John Guo
feature/v2.3.0 (#2296)
09 янв 2023, 09:43
Не верифицирован
09 янв 2023, 09:43
5e72b03
Код
Авторство
О чём код?
// Copyright GoFrame Author(https://goframe.org). All Rights Reserved. // // This Source Code Form is subject to the terms of the MIT License. // If a copy of the MIT was not distributed with this file, // You can obtain one at https://github.com/gogf/gf. package gredis import ( "context" "github.com/gogf/gf/v2/container/gvar" ) // IGroupScript manages redis script operations. // Implements see redis.GroupScript. type IGroupScript interface { Eval(ctx context.Context, script string, numKeys int64, keys []string, args []interface{}) (*gvar.Var, error) EvalSha(ctx context.Context, sha1 string, numKeys int64, keys []string, args []interface{}) (*gvar.Var, error) ScriptLoad(ctx context.Context, script string) (string, error) ScriptExists(ctx context.Context, sha1 string, sha1s ...string) (map[string]bool, error) ScriptFlush(ctx context.Context, option ...ScriptFlushOption) error ScriptKill(ctx context.Context) error } // ScriptFlushOption provides options for function ScriptFlush. type ScriptFlushOption struct { SYNC bool // SYNC flushes the cache synchronously. ASYNC bool // ASYNC flushes the cache asynchronously. }