Class Phalcon\Storage\Leveldb

Source on GitHub


public __construct (string $path, [string $options])

Phalcon\Storage\Leveldb constructor

public string get (string $key)

Returns the value for the given key or false

public mixed put (string $key, string $value, [array $options])

Puts the value for the given key

public mixed write (Phalcon\Storage\Leveldb\Writebatch $batch, [array $options])

Executes all of the operations added in the write batch

public boolean delete (string $key, [array $options])

Deletes the given key

public Phalcon\Storage\Leveldb\Iterator iterator ()

Gets a new iterator for the db

public set (unknown $key, unknown $value, [array $options])