gorse-io / gorse-io/gorse

When I try to customize the table prefix, the cache may have problems finding the key value; For example, set table_prefix to xxxx_. The possible cause is that the prefix of the cache value related to "global_xxxx“ is set in the code.

Open
#745 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
9.8k
Forks
912
Avg merge
2h 35m
Merged PRs (30d)
9

Description

**Gorse version**
Lastest

**Describe the bug**

```
# The naming prefix for tables (collections, keys) in databases. The default value is empty.
table_prefix = "custom_"

# The naming prefix for tables (collections, keys) in cache storage databases. The default value is `table_prefix`.
cache_table_prefix = ""

# The naming prefix for tables (collections, keys) in data storage databases. The default value is `table_prefix`.
data_table_prefix = ""
```
When I try to customize the table prefix, the cache may have problems finding the key value; For example, set table_prefix to xxxx_. The possible cause is that the prefix of the cache value related to "global_xxxx“ is set in the code.

Like this :
```
redis-cli get global_meta/matching_index_recall
null
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.