[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

11.1.2 Accessing a dbm database

Once a database is opened, you can use the following methods to access individual key/value pairs.

Method: dbm-put! (dbm <dbm>) key value
Put a value with key.

Method: dbm-get (dbm <dbm>) key &optional default
Get a value associated with key. If no value exists for key and default is specified, it is returned. If no value exists for key and default is not specified, an error is signalled.

Method: dbm-exists? (dbm <dbm>) key
Return true if a value exists for key, false otherwise.

Method: dbm-delete! (dbm <dbm>) key
Delete a value associated with key.



This document was generated by Ken Dickey on November, 28 2002 using texi2html