Problem:
I added a value to redis using Python code, and when I try to query is using Laravel
Redis::get('key_name')
it returnsnull
.Redis::keys('*')
returns values created using Laravel but not PythonRedis::scan('*')
returns all values even those created using Python
Research:
- https://stackoverflow.com/a/56569380/9530790, noted this may be a database number issue, however that is not the case. Since I'm using the same database in the Python code as well as the Laravel code, (database
0
) - https://stackoverflow.com/a/65278346/9530790, noted the same issue as above.
Question:
Why is keys('*')
not returning the key but scan('*')
is and how can I get the value if get('key_name')
is returning null?