5 function DbaPartition(&$dbm, $prefix)
11 function open($mode = 'w')
26 for ($key = $dbh->firstkey(); $key !== false; $key = $dbh->nextkey()) {
27 if (substr($key, 0, $n) == $prefix)
28 return (string)substr($key, $n);
38 for ($key = $dbh->nextkey(); $key !== false; $key = $dbh->nextkey()) {
39 if (substr($key, 0, $n) == $prefix)
40 return (string)substr($key, $n);
47 return $this->_h->exists($this->_p . $key);
52 return $this->_h->fetch($this->_p . $key);
55 function insert($key, $val)
57 return $this->_h->insert($this->_p . $key, $val);
60 function replace($key, $val)
62 return $this->_h->replace($this->_p . $key, $val);
67 return $this->_h->delete($this->_p . $key);
72 return $this->_h->get($this->_p . $key);
75 function set($key, $val)
77 return $this->_h->set($this->_p . $key, $val);
82 return $this->_h->sync();
87 return $this->_h->optimize();
95 // c-hanging-comment-ender-p: nil
96 // indent-tabs-mode: nil