forked from mirror/ledisdb
118 lines
4.5 KiB
HTML
118 lines
4.5 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset='utf-8'>
|
|
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
|
<!--link href='https://fonts.googleapis.com/css?family=Chivo:900' rel='stylesheet' type='text/css'-->
|
|
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen" />
|
|
<link rel="stylesheet" type="text/css" href="stylesheets/pygment_trac.css" media="screen" />
|
|
<link rel="stylesheet" type="text/css" href="stylesheets/print.css" media="print" />
|
|
<!--[if lt IE 9]>
|
|
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
|
<![endif]-->
|
|
<title>LedisDB</title>
|
|
</head>
|
|
|
|
<body>
|
|
<a href="https://github.com/siddontang/ledisdb"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"></a>
|
|
<div id="container">
|
|
<div class="inner">
|
|
|
|
<header>
|
|
<h1>LedisDB</h1>
|
|
<h2>a high performance NoSQL powered by Golang</h2>
|
|
</header>
|
|
|
|
<section id="downloads" class="clearfix">
|
|
<a href="https://github.com/siddontang/ledisdb/zipball/master" id="download-zip" class="button"><span>Download .zip</span></a>
|
|
<a href="https://github.com/siddontang/ledisdb/tarball/master" id="download-tar-gz" class="button"><span>Download .tar.gz</span></a>
|
|
<a href="https://github.com/siddontang/ledisdb" id="view-on-github" class="button"><span>View on GitHub</span></a>
|
|
</section>
|
|
|
|
<hr>
|
|
|
|
<section id="main_content">
|
|
<h1>
|
|
<a name="ledisdb" class="anchor" href="#ledisdb"><span class="octicon octicon-link"></span></a>LedisDB</h1>
|
|
|
|
<p>Ledisdb is a high performance NoSQL like Redis based on LevelDB written by Golang. It supports some advanced data structure like kv, list, hash, zset and bitmap, and may be alternative for Redis.</p>
|
|
|
|
<h2>
|
|
<a name="features" class="anchor" href="#features"><span class="octicon octicon-link"></span></a>Features</h2>
|
|
|
|
<ul>
|
|
<li>Rich advanced data structure: KV, List, Hash, ZSet, Bitmap.</li>
|
|
<li>Uses leveldb to store lots of data, over the memory limit.</li>
|
|
<li>Supports expiration and ttl.</li>
|
|
<li>Redis clients, like redis-cli, are supported directly.</li>
|
|
<li>Multi client API supports, including Golang, Python, Lua(Openresty).</li>
|
|
<li>Easy to embed in Golang application.</li>
|
|
<li>Replication to guarantee data safe.</li>
|
|
<li>Supplies tools to load, dump, repair database.</li>
|
|
</ul>
|
|
|
|
<h2>
|
|
<a name="eample" class="anchor" href="#example"><span class="octicon octicon-link"></span></a>Example</h2>
|
|
|
|
<pre><code>./ledis-server -config=/etc/ledis.json
|
|
|
|
//another shell
|
|
ledis-cli -p 6380
|
|
|
|
ledis 127.0.0.1:6380> set a 1
|
|
OK
|
|
ledis 127.0.0.1:6380> get a
|
|
"1"
|
|
</code></pre>
|
|
|
|
<h2>
|
|
<a name="lib" class="anchor" href="#lib"><span class="octicon octicon-link"></span></a>Lib Example</h2>
|
|
|
|
<pre><code>import "github.com/siddontang/ledisdb/ledis"
|
|
l, _ := ledis.Open(cfg)
|
|
db, _ := l.Select(0)
|
|
|
|
db.Set(key, value)
|
|
|
|
db.Get(key)
|
|
</code></pre>
|
|
|
|
|
|
<h2>
|
|
<a name="links" class="anchor" href="#links"><span class="octicon octicon-link"></span></a>Links</h2>
|
|
|
|
<ul>
|
|
<li><a href="https://godoc.org/github.com/siddontang/ledisdb">GoDoc</a></li>
|
|
<li><a href="http://blog.csdn.net/siddontang/article/category/2264003">Author's Chinese Blog</a></li>
|
|
<li><a href="https://github.com/siddontang/ledisdb/wiki/Commands">Server Commands</a></li>
|
|
</ul>
|
|
|
|
<h2>
|
|
<a name="feedback" class="anchor" href="#feedback"><span class="octicon octicon-link"></span></a>Feedback</h2>
|
|
|
|
<p>Gmail: <a href="mailto:siddontang@gmail.com">siddontang@gmail.com</a></p>
|
|
</section>
|
|
|
|
<footer>
|
|
Ledisdb is maintained by <a href="https://github.com/siddontang">siddontang</a><br>
|
|
This page was generated by <a href="http://pages.github.com">GitHub Pages</a>. Tactile theme by <a href="https://twitter.com/jasonlong">Jason Long</a>.
|
|
</footer>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</body>
|
|
|
|
<script>
|
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
|
|
|
ga('create', 'UA-27956076-2', 'auto');
|
|
ga('send', 'pageview');
|
|
|
|
</script>
|
|
|
|
</html>
|