You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
557 B
24 lines
557 B
package stored_procedure
|
|
|
|
import (
|
|
_ "embed"
|
|
"github.com/go-redis/redis/v8"
|
|
)
|
|
|
|
func init() {
|
|
InsertEntryScript = redis.NewScript(insertEntry)
|
|
DeleteEntryScript = redis.NewScript(deleteEntry)
|
|
DeleteFolderChildrenScript = redis.NewScript(deleteFolderChildren)
|
|
}
|
|
|
|
//go:embed insert_entry.lua
|
|
var insertEntry string
|
|
var InsertEntryScript *redis.Script
|
|
|
|
//go:embed delete_entry.lua
|
|
var deleteEntry string
|
|
var DeleteEntryScript *redis.Script
|
|
|
|
//go:embed delete_folder_children.lua
|
|
var deleteFolderChildren string
|
|
var DeleteFolderChildrenScript *redis.Script
|