The dcacheadd program

dcacheadd - add a record to a cache file


dcacheadd CACHE KEY <DATA


dcacheadd adds a a record to an existing cache file CACHE.

DATA may contain arbitrary bytes. KEY may contain any character except the ASCII NUL character (0x00).


-d, --delete
Delete any existing records with that key. Use this option to ensure that only one record has the new key. May be combined with --transaction.
-N, --no-sync
Do not fsync cache to disk. The default is to call fsync, which waits until the data has been written to disk. This is costly but safe. Using this option is not recommended unless speed is the premium.
-T, --transaction
Delete and add entries in one transaction. The default is to do one operation after each other. With this option all changes will be done at once, ensuring that the cache either contains the old or the new state. Note: this costs memory and disk-space.
Where to find related information.
Usage examples.
Show version: dcacheadd (dcache) 0.6.1-beta2.
Show a list of options or the long help on one. The use with an argument shows the long help text of that option, without an argument it will list all options.
Show longer help texts for all or one option.


dcacheadd cache 'passwd' </etc/passwd

  Copies the content of /etc/passwd to the cache.

echo 1234 | dcacheadd cache abcd

  Creates a record with content '1234' and key 'abcd'.


Copyright (C) 2003,2004,2005 Uwe Ohse.

The software comes with NO WARRANTY, to the extent permitted by law.

This package is published under the terms of the GNU General Public License version 2. Later versions of the GPL may or may not apply, see


Uwe Ohse, <>.


Report bugs to


dcachemake(1) is a fast way to add multiple records to a dcache. dcacheget(1) allows to retrieve records. dcache_intro(7) is the introduction to dcache.

The dcache homepage is at