FoundationDB is a distributed database designed to handle large volumes of structured data across clusters of commodity servers. It organizes data as an ordered key-value store and employs ACID transactions for all operations. It is especially well-suited for read/write workloads but also has excellent performance for write-intensive workloads.
$foundationClient = new \Foundation\Client(); $database = $foundationClient ->connection('/usr/local/etc/foundationdb/fdb.cluster') ->database('DB');bool set(string $key, string $value);$database->set('viest', json_encode([ 'name' => 'JiexinWang', 'age' => 22 ]));string get(string $key);$user = $database->get('viest');bool clear(string $key);$database->clear('viest')array range(int $startIndex, int $endIndex);$rangeArray = $database->range(0, 2);