Skip to content

Commit

Permalink
fix clear cache by prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
morkid committed Mar 9, 2021
1 parent 98ff8f8 commit 2c75a77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gocache_elasticsearch.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (e elasticCache) Clear(key string) error {
func (e elasticCache) ClearPrefix(keyPrefix string) error {
query := map[string]map[string]map[string]string{
"query": {
"prefix": {
"match_phrase_prefix": {
"key": keyPrefix,
},
},
Expand Down

0 comments on commit 2c75a77

Please sign in to comment.