It depends on how big the items are and the capacity of your Redis instance: http://redis.io/topics/faq
How many items can Redis cache (or the max storage)?
I have enabled caching of database queries with Laravel using Redis. But how can I find out the maximum storage of Redis, e.g how many items it can cache?
In general, if you're using Redis as a cache (i.e. memory based cache or LRU), you're limited by the size of the cache and not how many items are in the cache. Setting the maxmemory and an eviction policy will control how much information is cached. Read more here: http://redis.io/topics/lru-cache
That said, I'm not sure how Laravel handles caching queries. If it's setting an EXPIRE time, then the items will get dropped based on the time regardless of the maximum amount of memory allowed (except in the case where the maxmemory is greater than 0 and the limit has been reached).
You can see if your server has a max memory by looking in the configuration file for Redis, or by connecting to the server with redis-cli and issuing the INFO memory command:
127.0.0.1:6379> INFO memory
# Memory
used_memory:1008192
used_memory_human:984.56K
used_memory_rss:1183744
used_memory_rss_human:1.13M
used_memory_peak:1010256
used_memory_peak_human:986.58K
total_system_memory:17179869184
total_system_memory_human:16.00G
used_memory_lua:37888
used_memory_lua_human:37.00K
maxmemory:0
maxmemory_human:0B
maxmemory_policy:noeviction
mem_fragmentation_ratio:1.17
mem_allocator:libc
Please or to participate in this conversation.