forked from huangzworks/redis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bf8909d
commit 78d64df
Showing
7 changed files
with
167 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,158 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | ||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
|
||
|
||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
|
||
<title>HSTRLEN — Redis 命令参考</title> | ||
|
||
<link rel="stylesheet" href="../_static/pyramid.css" type="text/css" /> | ||
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> | ||
|
||
<script type="text/javascript"> | ||
var DOCUMENTATION_OPTIONS = { | ||
URL_ROOT: '../', | ||
VERSION: '2.8', | ||
COLLAPSE_INDEX: false, | ||
FILE_SUFFIX: '.html', | ||
HAS_SOURCE: true | ||
}; | ||
</script> | ||
<script type="text/javascript" src="../_static/jquery.js"></script> | ||
<script type="text/javascript" src="../_static/underscore.js"></script> | ||
<script type="text/javascript" src="../_static/doctools.js"></script> | ||
<link rel="top" title="Redis 命令参考" href="../index.html" /> | ||
<link rel="up" title="Hash(哈希表)" href="index.html" /> | ||
<link rel="next" title="List(列表)" href="../list/index.html" /> | ||
<link rel="prev" title="HSCAN" href="hscan.html" /> | ||
|
||
<!--[if lte IE 6]> | ||
<link rel="stylesheet" href="../_static/ie6.css" type="text/css" media="screen" charset="utf-8" /> | ||
<![endif]--> | ||
|
||
|
||
</head> | ||
<body> | ||
|
||
|
||
<div class="related"> | ||
<h3>Navigation</h3> | ||
<ul> | ||
<li class="right" style="margin-right: 10px"> | ||
<a href="../genindex.html" title="General Index" | ||
accesskey="I">index</a></li> | ||
<li class="right" > | ||
<a href="../list/index.html" title="List(列表)" | ||
accesskey="N">next</a> |</li> | ||
<li class="right" > | ||
<a href="hscan.html" title="HSCAN" | ||
accesskey="P">previous</a> |</li> | ||
<li><a href="../index.html">Redis 命令参考</a> »</li> | ||
<li><a href="index.html" accesskey="U">Hash(哈希表)</a> »</li> | ||
</ul> | ||
</div> | ||
|
||
<div class="document"> | ||
<div class="documentwrapper"> | ||
<div class="bodywrapper"> | ||
<div class="body"> | ||
|
||
<div class="section" id="hstrlen"> | ||
<span id="id1"></span><h1>HSTRLEN<a class="headerlink" href="#hstrlen" title="Permalink to this headline">¶</a></h1> | ||
<p><strong>HSTRLEN key field</strong></p> | ||
<p>返回哈希表 <code class="docutils literal"><span class="pre">key</span></code> 中, | ||
与给定域 <code class="docutils literal"><span class="pre">field</span></code> 相关联的值的字符串长度(string length)。</p> | ||
<p>如果给定的键或者域不存在, | ||
那么命令返回 <code class="docutils literal"><span class="pre">0</span></code> 。</p> | ||
<dl class="docutils"> | ||
<dt><strong>可用版本:</strong></dt> | ||
<dd>>= 3.2.0</dd> | ||
<dt><strong>时间复杂度:</strong></dt> | ||
<dd>O(1)</dd> | ||
<dt><strong>返回值:</strong></dt> | ||
<dd>一个整数。</dd> | ||
</dl> | ||
<div class="highlight-python"><div class="highlight"><pre>redis> HMSET myhash f1 "HelloWorld" f2 "99" f3 "-256" | ||
OK | ||
|
||
redis> HSTRLEN myhash f1 | ||
(integer) 10 | ||
|
||
redis> HSTRLEN myhash f2 | ||
(integer) 2 | ||
|
||
redis> HSTRLEN myhash f3 | ||
(integer) 4 | ||
</pre></div> | ||
</div> | ||
</div> | ||
|
||
|
||
|
||
<div class="section" id="discuss"> | ||
|
||
<h2> | ||
讨论 | ||
<a class="headerlink" href="#discuss" title="永久链接至标题">¶</a> | ||
</h2> | ||
|
||
<div id="disqus_thread"></div> | ||
<script type="text/javascript"> | ||
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ | ||
var disqus_shortname = 'redis-command-cn'; // required: replace example with your forum shortname | ||
|
||
/* * * DON'T EDIT BELOW THIS LINE * * */ | ||
(function() { | ||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; | ||
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; | ||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); | ||
})(); | ||
</script> | ||
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> | ||
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a> | ||
</div> | ||
|
||
<div id="sponser"> | ||
<h2>赞助商</h2> | ||
<a href="http://yunba.io/"><img src="../_static/yunba-logo.jpg"/></a> | ||
<p><a href="http://yunba.io/">云巴(yunba.io)</a>,专业的App.Web.物联网实时通信后端云服务提供商。</p> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
<div class="clearer"></div> | ||
</div> | ||
<div class="related"> | ||
<h3>Navigation</h3> | ||
<ul> | ||
<li class="right" style="margin-right: 10px"> | ||
<a href="../genindex.html" title="General Index" | ||
>index</a></li> | ||
<li class="right" > | ||
<a href="../list/index.html" title="List(列表)" | ||
>next</a> |</li> | ||
<li class="right" > | ||
<a href="hscan.html" title="HSCAN" | ||
>previous</a> |</li> | ||
<li><a href="../index.html">Redis 命令参考</a> »</li> | ||
<li><a href="index.html" >Hash(哈希表)</a> »</li> | ||
</ul> | ||
</div> | ||
<div class="footer"> | ||
© Copyright 2015, Redis. | ||
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3. | ||
</div> | ||
<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-53959484-7', 'auto'); | ||
ga('send', 'pageview'); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.