gorse-io / gorse

Gorse open source recommender system engine
https://gorse.io
Apache License 2.0
8.47k stars 771 forks source link

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. #745

Open shenhuanjie opened 1 year ago

shenhuanjie commented 1 year ago

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 tableprefix 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
zhenghaoz commented 1 year ago

The right place of this value is:

get xxxx_global_meta/matching_index_recall
aqlx86 commented 1 month ago

is this fixed?