1 .\" Copyright (c) 2005 Michael Bushkov <bushman@rsu.ru>
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .Nd "name service caching daemon"
40 is the system caching daemon.
41 It can cache almost all types of data and is basically intended to be used
45 The cache is actually per-user.
46 This means that each user can work only with the
47 cached data that were cached by themselves, and cannot poison the
51 utility supports two types of caching:
52 .Bl -tag -width ".Sy Type"
56 Each cached element is the key+value pair.
57 This type of caching supports policies which are applied when maximum
58 number of cached elements is exceeded.
59 Three policies are available:
61 (first in - first out),
63 (least recently used) and
65 (least frequently used).
66 This type of caching is used with the
70 Each cached element is the part of the elements sequence.
71 This type of caching is intended to be used with the
78 utility is able not only to cache elements, but to perform the actual nsswitch
80 To enable this feature, use the
81 .Va perform-actual-lookups
87 utility recognizes the following runtime options:
88 .Bl -tag -width indent
94 will not fork or disconnect itself from the terminal.
97 Forces using only one thread for all processing purposes (it overrides
105 All trace messages will be written to stdout.
106 This mode is usually used with
110 flags are used for debugging purposes.
111 .It Fl i Ar cachename
112 Invalidates personal cache.
115 acts as the administration tool.
116 It asks the already running
118 to invalidate the specified part of the cache of the
120 For example, sometimes you may want to invalidate your
127 to invalidate your personal cache as a whole.
128 You cannot use this option for the
131 .Va perform-actual-lookups
133 .It Fl I Ar cachename
134 Invalidates the cache for every user.
137 acts as the administration tool.
141 to invalidate the specified part of the cache for
147 to invalidate the whole cache.
148 Only the root can use this option.
151 .Bl -tag -width ".Pa /etc/nscd.conf" -compact
152 .It Pa /etc/nscd.conf
153 The default configuration file.
160 .An Michael Bushkov Aq Mt bushman@FreeBSD.org