Skip to content

Monster Oasis

  • 浪況預測
  • KML2CSV
  • World Marathon

bdb

[memo] My KV database compare

2020/10/282020/10/21 by Monster

Read more

Categories Programming/php, System/Linux/Unix* Tags array, bdb, cachelite, redis

[PHP] Sample code : Berkeley DB , bdb , dba_open , db4 , key-value database ,

2015/05/13 by Monster
$id = dba_open("bdb4_tsid.db", "w", "db4");

if (!$id) { echo "dba_open failed\n"; exit; }

dba_replace("key", "This is an example!", $id);

if (dba_exists("key", $id)) {
        echo dba_fetch("key", $id);
        dba_delete("key", $id);
}

dba_close($id);

Screenshot 2015 05 13 20 28 39

 

 

Screenshot 2015 05 13 20 37 56

 

This is an example!
exist:
This is an example!
---> This is an example!

Categories DATABASE, Programming/php Tags bdb, DATABASE, php

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Blogroll

  • 02 浪況預測
  • Email
  • G Suite admin console
  • gandi
  • Google AdSense
  • Google Analytics
  • webHD
  • ★Amazon AWS console

Search

© 2021 Monster Oasis • Built with GeneratePress