Skip to content

Commit

Permalink
Update Caching.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
unbit committed Feb 13, 2014
1 parent 659f262 commit 1db15c9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Caching.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@ to specify its name and the maximum number of items it can contains.
this will create a cache named "mycache" with a maximum of 100 items. Each item can be at most 64k.


A sad/weird/strange/bad note about "the maximum number of items"
****************************************************************

If you start with a 100-items cache you will suddenly note that the true maximum number of items you can use is indeed 99.

This is because the first item of the cache is always used as "NULL/None/undef" item internally.

Remember it, when you start planning your cache configuration


Configuring the cache (how it works)
************************************

Expand Down

0 comments on commit 1db15c9

Please sign in to comment.