mikebronner / laravel-model-caching

Eloquent model-caching made easy.
MIT License
2.26k stars 217 forks source link

when i use the trait and make a model::find() operate,in redis it create 5 keys #271

Closed ayamzh closed 5 years ago

ayamzh commented 5 years ago

1) "laravel_cache:2ea8882ad1eb66d9a96f3fd1ee6cc5207a532463:8e5a2d770e76d6640a9ae19e5f30ba9590282e3b" 2) "laravel_cache:2ea8882ad1eb66d9a96f3fd1ee6cc5207a532463:6f22eae97307bd0e40f1a66341942ae1620cd1dd" 3) "laravel_cache:2ea8882ad1eb66d9a96f3fd1ee6cc5207a532463:0f4c01354195d5b50d6920fa4a3dc060c62abfd4" 4) "laravel_cache:tag:genealabs:laravel-model-caching:mysql:erge_point:test-prefix:appmodelsuseraddrmodel:key" 5) "laravel_cache:5d2849c7175a6810287563:forever_ref"

the 1 2 3 key has the same value

mikebronner commented 5 years ago

Please provide more details that would help us track this down. For example, a table of the keys and values you see in Redis. Also, if you could provide all eloquent queries that were ran against the model.

mikebronner commented 5 years ago

Closing due to inactivity