{"action":"created","issue":{"url":"https://api.github.com/repos/PyTables/PyTables/issues/529","repository_url":"https://api.github.com/repos/PyTables/PyTables","labels_url":"https://api.github.com/repos/PyTables/PyTables/issues/529/labels{/name}","comments_url":"https://api.github.com/repos/PyTables/PyTables/issues/529/comments","events_url":"https://api.github.com/repos/PyTables/PyTables/issues/529/events","html_url":"https://github.com/PyTables/PyTables/issues/529","id":140124609,"number":529,"title":"Setting cache slots parameter less than 10 never removes items from the cache","user":{"login":"grahamrjuk","id":2349352,"avatar_url":"https://avatars.githubusercontent.com/u/2349352?v=3","gravatar_id":"","url":"https://api.github.com/users/grahamrjuk","html_url":"https://github.com/grahamrjuk","followers_url":"https://api.github.com/users/grahamrjuk/followers","following_url":"https://api.github.com/users/grahamrjuk/following{/other_user}","gists_url":"https://api.github.com/users/grahamrjuk/gists{/gist_id}","starred_url":"https://api.github.com/users/grahamrjuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grahamrjuk/subscriptions","organizations_url":"https://api.github.com/users/grahamrjuk/orgs","repos_url":"https://api.github.com/users/grahamrjuk/repos","events_url":"https://api.github.com/users/grahamrjuk/events{/privacy}","received_events_url":"https://api.github.com/users/grahamrjuk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-11T08:47:34Z","updated_at":"2016-03-11T09:07:48Z","closed_at":null,"body":"If I set a cache slots parameters to a value less than 10 - for example ```COND_CACHE_SLOTS``` - the number of items the ```NailedDict``` decides to remove is 0 (integer value of 10% of the parameter).\r\n\r\nThe cache then grows forever.\r\n\r\nIt is possible that such a small cache is not considered sensible but I don't see any documentation saying there is a minimum.\r\n\r\nSuggest making the calculation of the number to remove always remove 1 cache entry, instead of none, or set a minimum cache slots of 10."},"comment":{"url":"https://api.github.com/repos/PyTables/PyTables/issues/comments/195276245","html_url":"https://github.com/PyTables/PyTables/issues/529#issuecomment-195276245","issue_url":"https://api.github.com/repos/PyTables/PyTables/issues/529","id":195276245,"user":{"login":"FrancescAlted","id":314521,"avatar_url":"https://avatars.githubusercontent.com/u/314521?v=3","gravatar_id":"","url":"https://api.github.com/users/FrancescAlted","html_url":"https://github.com/FrancescAlted","followers_url":"https://api.github.com/users/FrancescAlted/followers","following_url":"https://api.github.com/users/FrancescAlted/following{/other_user}","gists_url":"https://api.github.com/users/FrancescAlted/gists{/gist_id}","starred_url":"https://api.github.com/users/FrancescAlted/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FrancescAlted/subscriptions","organizations_url":"https://api.github.com/users/FrancescAlted/orgs","repos_url":"https://api.github.com/users/FrancescAlted/repos","events_url":"https://api.github.com/users/FrancescAlted/events{/privacy}","received_events_url":"https://api.github.com/users/FrancescAlted/received_events","type":"User","site_admin":false},"created_at":"2016-03-11T09:07:48Z","updated_at":"2016-03-11T09:07:48Z","body":"Good point.  I am +1 on always removing 1 cache entry at least and +0 for a minimum cache slots.  Would you mind providing a PR?"}}