4 psi.directory={PWD}:{PWD}/../../psi.d
11 function __construct($file = __DIR__."/ndbm001.db", $o = psi\O_CREAT|psi\O_RDWR, $m = 0640) {
12 if (!$this->db = psi\dbm_open($file, $o, $m)) {
13 throw new Exception(psi\strerror(psi\errno()));
17 function __destruct() {
18 psi\dbm_close($this->db);
19 array_map("unlink", glob(__DIR__."/ndbm001.db*"));
22 function __set($k, $v) {
23 return psi\dbm_store($this->db, $k, $v, psi\DBM_REPLACE);
27 $val = psi\dbm_fetch($this->db, [
44 array_map("unlink", glob(__DIR__."/ndbm001.db*"));