2014-07-16 06:34:59 +04:00
|
|
|
<!DOCTYPE html>
|
2014-07-22 13:39:29 +04:00
|
|
|
<html lang="en">
|
2014-07-16 06:34:59 +04:00
|
|
|
<head>
|
2014-07-22 13:39:29 +04:00
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<meta name="description" content="">
|
|
|
|
<meta name="author" content="">
|
|
|
|
<link rel="icon" href="favicon.ico">
|
|
|
|
|
|
|
|
<title>LedisDB</title>
|
|
|
|
|
|
|
|
<!-- Bootstrap core CSS -->
|
|
|
|
<link href="css/bootstrap.min.css" rel="stylesheet">
|
|
|
|
<link href="css/font-awesome.min.css" rel="stylesheet">
|
|
|
|
<link rel="stylesheet" href="css/github.css">
|
|
|
|
|
|
|
|
<!-- Custom styles for this template -->
|
|
|
|
<link href="css/style.css" rel="stylesheet">
|
|
|
|
|
|
|
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
2014-07-16 06:34:59 +04:00
|
|
|
<!--[if lt IE 9]>
|
2014-07-22 13:39:29 +04:00
|
|
|
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
|
|
|
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
2014-07-16 06:34:59 +04:00
|
|
|
<![endif]-->
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
2014-07-22 13:39:29 +04:00
|
|
|
<div class="container">
|
|
|
|
<div class="header">
|
|
|
|
<ul class="nav nav-pills pull-right" role="tablist">
|
|
|
|
<li role="presentation"><a href="/">Home</a></li>
|
2014-07-24 12:13:06 +04:00
|
|
|
<li role="presentation"><a href="/news.html">News</a></li>
|
2014-07-22 13:39:29 +04:00
|
|
|
<li role="presentation"><a href="/contact.html">Contact</a></li>
|
|
|
|
</ul>
|
2014-07-23 16:24:47 +04:00
|
|
|
<a class="logo" href="/"><img src="/img/logo.png" alt="LedisDB"></a>
|
2014-07-22 13:39:29 +04:00
|
|
|
</div>
|
2014-07-16 06:34:59 +04:00
|
|
|
|
2014-07-22 13:39:29 +04:00
|
|
|
<div class="jumbotron">
|
|
|
|
<h1>LedisDB</h1>
|
|
|
|
<p class="lead">A high performance NoSQL like Redis based on LevelDB implemented by Golang.</p>
|
2014-07-23 16:24:47 +04:00
|
|
|
<p><a class="btn btn-lg btn-ledis" target="_blank" href="https://github.com/siddontang/ledisdb" role="button">
|
2014-07-22 13:39:29 +04:00
|
|
|
<i class="glyphicon glyphicon-eye-open"></i>
|
|
|
|
View on GitHub</a></p>
|
|
|
|
</div>
|
2014-07-16 06:34:59 +04:00
|
|
|
|
2014-07-22 13:39:29 +04:00
|
|
|
<div class="row features" id="features">
|
|
|
|
<div class="col-lg-6">
|
|
|
|
<h3 class="">Data Structure</h3>
|
|
|
|
<p>Rich advanced data structure: KV, List, Hash, ZSet, Bitmap.</p>
|
|
|
|
|
|
|
|
<h3>LevelDB Rocks</h3>
|
|
|
|
<p>Uses leveldb to store massive data, disk-based storage, over the memory limit.</p>
|
2014-07-16 06:34:59 +04:00
|
|
|
|
2014-07-22 13:39:29 +04:00
|
|
|
<h3>Expiration & TTL</h3>
|
|
|
|
<p>Supports expiration and ttl in all kinds of data structures.</p>
|
2014-07-16 06:34:59 +04:00
|
|
|
|
2014-07-22 13:39:29 +04:00
|
|
|
<h3>CLI Support</h3>
|
|
|
|
<p>Redis clients, like redis-cli, are supported directly.</p>
|
2014-07-16 06:34:59 +04:00
|
|
|
|
2014-07-22 13:39:29 +04:00
|
|
|
</div>
|
2014-07-16 06:34:59 +04:00
|
|
|
|
2014-07-22 13:39:29 +04:00
|
|
|
<div class="col-lg-6">
|
|
|
|
|
2014-07-24 06:37:41 +04:00
|
|
|
<h3>Multi-Clients </h3>
|
2014-07-22 13:39:29 +04:00
|
|
|
<p>Multiple clients API supports, including Golang, Python, Lua(Openresty).</p>
|
2014-07-16 06:34:59 +04:00
|
|
|
|
2014-07-22 13:39:29 +04:00
|
|
|
<h3>Easy Embedding</h3>
|
|
|
|
<p>Easy to embed in Golang application.</p>
|
2014-07-16 06:34:59 +04:00
|
|
|
|
2014-07-22 13:39:29 +04:00
|
|
|
<h3>Data Protection</h3>
|
|
|
|
<p>Replication to guarantee data safety.</p>
|
|
|
|
|
|
|
|
<h3>Useful Tools</h3>
|
|
|
|
<p>Supplies tools to load, dump, and repair database.</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row examples" id="examples">
|
|
|
|
<h2>Examples</h2>
|
|
|
|
<pre><code class="Bash">
|
|
|
|
./ledis-server -config=/etc/ledis.json
|
2014-07-16 06:34:59 +04:00
|
|
|
|
|
|
|
//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"
|
2014-07-22 13:39:29 +04:00
|
|
|
</code></pre>
|
2014-07-16 06:34:59 +04:00
|
|
|
|
2014-07-22 13:39:29 +04:00
|
|
|
<h2>Lib Example</h2>
|
|
|
|
<pre><code class="Bash">
|
|
|
|
import "github.com/siddontang/ledisdb/ledis"
|
2014-07-16 06:34:59 +04:00
|
|
|
l, _ := ledis.Open(cfg)
|
|
|
|
db, _ := l.Select(0)
|
|
|
|
|
|
|
|
db.Set(key, value)
|
|
|
|
|
|
|
|
db.Get(key)
|
2014-07-22 13:39:29 +04:00
|
|
|
</code></pre>
|
|
|
|
</div>
|
2014-07-16 06:34:59 +04:00
|
|
|
|
2014-07-22 13:39:29 +04:00
|
|
|
<!-- /benchmark-->
|
|
|
|
<div class="row benchmark" id="benchmark">
|
|
|
|
<h2>Benchmark</h2>
|
2014-07-16 06:34:59 +04:00
|
|
|
|
2014-07-22 13:39:29 +04:00
|
|
|
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
|
2014-07-16 06:34:59 +04:00
|
|
|
|
2014-07-22 13:39:29 +04:00
|
|
|
<table class="hide" id="datatable">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th></th>
|
2014-07-23 16:24:47 +04:00
|
|
|
<th>Redis</th>
|
|
|
|
<th>SSDB</th>
|
|
|
|
<th>LedisDB</th>
|
2014-07-22 13:39:29 +04:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<th>SET</th>
|
|
|
|
<td>42735.04</td>
|
|
|
|
<td>35971.22</td>
|
|
|
|
<td>38759.69</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>GET</th>
|
|
|
|
<td>45871.56</td>
|
|
|
|
<td>47393.37</td>
|
|
|
|
<td>40160.64</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>INCR</th>
|
|
|
|
<td>45248.87</td>
|
|
|
|
<td>36630.04</td>
|
|
|
|
<td>36101.08</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>LPUSH</th>
|
|
|
|
<td>45045.04</td>
|
|
|
|
<td>37174.72</td>
|
|
|
|
<td>33003.30</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>LPOP</th>
|
|
|
|
<td>43103.45</td>
|
|
|
|
<td>38167.94</td>
|
|
|
|
<td>27624.31</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>LPUSH-lrange</th>
|
|
|
|
<td>44843.05</td>
|
|
|
|
<td>37593.98</td>
|
|
|
|
<td>32894.74</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>LRANGE_100</th>
|
|
|
|
<td>14727.54</td>
|
|
|
|
<td>905.55</td>
|
|
|
|
<td>7352.94</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>LRANGE_300</th>
|
|
|
|
<td>6915.63</td>
|
|
|
|
<td>327.78</td>
|
|
|
|
<td>2867.79</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>LRANGE_500</th>
|
|
|
|
<td>5042.86</td>
|
|
|
|
<td>222.36</td>
|
|
|
|
<td>1778.41</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>LRANGE_600</th>
|
|
|
|
<td>3960.40</td>
|
|
|
|
<td>165.30</td>
|
|
|
|
<td>1590.33</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>MSET</th>
|
|
|
|
<td>33003.30</td>
|
|
|
|
<td>33112.59</td>
|
|
|
|
<td>21881.84</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<br>
|
2014-07-23 16:24:47 +04:00
|
|
|
<p>For more information, please take a look at <a href="https://github.com/siddontang/ledisdb/blob/master/benchmark.md"><em>benchmark.md</em></a>.</p>
|
2014-07-22 13:39:29 +04:00
|
|
|
</div>
|
2014-07-16 06:34:59 +04:00
|
|
|
|
2014-07-22 13:39:29 +04:00
|
|
|
<div id="footer-wrapper" class="gradient">
|
|
|
|
<div id="footer" class="row">
|
|
|
|
<div class="large-4 columns col-sm-4">
|
|
|
|
<h2 id="contribute" >Get Involved</h2>
|
|
|
|
<ul class="underline-link">
|
|
|
|
<li><a target="_blank" href="https://github.com/siddontang/ledisdb/issues?state=open">Issue Tracker</a></li>
|
|
|
|
<li><a target="_blank" href="https://github.com/siddontang/ledisdb/issues?labels=todo&page=1&state=open">Todo</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="large-4 columns col-sm-4">
|
|
|
|
<h2>Quick Links</h2>
|
|
|
|
<ul class="underline-link">
|
|
|
|
<li><a target="_blank" href="https://github.com/siddontang/ledisdb/wiki">Wiki</a></li>
|
|
|
|
<li><a target="_blank" href="http://ledis-py.readthedocs.org/">Ledis-py</a></li>
|
|
|
|
<li><a target="_blank" href="https://godoc.org/github.com/siddontang/ledisdb">Godoc</a></li>
|
|
|
|
<li><a target="_blank" href="http://blog.csdn.net/siddontang/article/category/2264003">Author's Chinese Blog</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="about" class="about">
|
|
|
|
<div class="foot">
|
|
|
|
<p>LedisDB was created and maintained by <a class="underline-link" href="https://github.com/siddontang">SiddonTang</a>.
|
|
|
|
<a class="underline-link" href="https://github.com/siddontang/ledisdb/blob/master/LICENSE">MIT License</a>.</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-07-16 06:34:59 +04:00
|
|
|
</div>
|
2014-07-16 16:59:07 +04:00
|
|
|
|
2014-07-22 13:39:29 +04:00
|
|
|
</div> <!-- /container -->
|
2014-07-16 16:59:07 +04:00
|
|
|
|
|
|
|
|
2014-07-22 13:39:29 +04:00
|
|
|
<script src="js/jquery-1.11.1.min.js"></script>
|
|
|
|
<script src="js/highlight.pack.js"></script>
|
|
|
|
<script>hljs.initHighlightingOnLoad();</script>
|
|
|
|
|
|
|
|
<script src="http://code.highcharts.com/highcharts.js"></script>
|
|
|
|
<script src="http://code.highcharts.com/modules/data.js"></script>
|
|
|
|
<script src="http://code.highcharts.com/modules/exporting.js"></script>
|
|
|
|
<script>
|
|
|
|
$(function () {
|
2014-07-23 16:24:47 +04:00
|
|
|
Highcharts.setOptions({
|
|
|
|
colors: ['#df4810', '#3d4c4e', '#45a797']
|
|
|
|
});
|
2014-07-22 13:39:29 +04:00
|
|
|
$('#container').highcharts({
|
|
|
|
data: {
|
|
|
|
table: document.getElementById('datatable')
|
|
|
|
},
|
|
|
|
chart: {
|
|
|
|
type: 'column'
|
|
|
|
},
|
|
|
|
title: {
|
|
|
|
text: 'Redis vs SSDB vs LedisDB'
|
|
|
|
},
|
|
|
|
yAxis: {
|
|
|
|
allowDecimals: false,
|
|
|
|
title: {
|
|
|
|
text: 'Units'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
tooltip: {
|
|
|
|
formatter: function() {
|
|
|
|
return '<b>'+ this.series.name +'</b><br/>'+
|
|
|
|
this.point.y +' '+ this.point.name.toLowerCase();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
2014-07-23 16:24:47 +04:00
|
|
|
|
2014-07-22 13:39:29 +04:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
</body>
|
2014-07-16 07:21:24 +04:00
|
|
|
</html>
|