The caches nscd(8) uses as well as some generic options can be configured in /etc/nscd.conf.
The configuration file consists of a set of lines. All empty lines, and all text on a line after a '#', will be ignored. All remaining lines denote the setting of an option. There are two kinds of options: General options influence nscd(8)'s general behaviour, while cache options only affect the named cache. Options are set like this:
If level is higher than 0, nscd(8) will create some debug output. The higher the level, the more output that is produced.
This option sets the number of threads that nscd(8) should use by default. It can be overridden by calling nscd(8) with the -t or --nthreads argument. If neither this configuration option nor the command line argument is given, nscd(8) uses 5 threads by default. The minimum is 3. More threads means more simultaneous connections that nscd(8) can handle.
All cache options take two arguments, the first one denoting the service or cache the options is going to affect. Currently service can be one of passwd, group or hosts.
enable-cache service bool
bool must be one of yes or no. Each cache is disabled by default and must be enabled explicitly by setting this options to yes.
positive-time-to-live service secs
This is the number of seconds after which a cached entry is removed from the cache. This defaults to 3600 seconds (i. e. one hour).
negative-time-to-live service secs
If an entry is not found by the Name Service, it is added to the cache and marked as password and host cache and to 60 seconds for the group__ cache.
suggested-size service prime-number
This option sets the size of the hash that is used to store the cache entries. As this is a hash, it should be reasonably larger than the maximum number of entries that is expected to be cached simultaneously and should be a prime number. It defaults to a size of 211 entries.
check-files service bool
lib/main.php:944: Notice: PageInfo: Cannot find action page