-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
624 lines (442 loc) · 19.7 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Hexo</title>
<meta name="keywords" content="">
<meta name="description" content="Hexo">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description" content="一、Redis的数据类型&数据结构1.Redis数据类型Redis支持五(6)种数据类型,对redis来说,所有的key(键)都是字符串: string(字符串) hash(哈希) list(列表) set(集合) zset(sorted set:有序集合) 注意:Redis5新加了一种数据类型stream。 2.Redis数据结构 list set zset hash BitMap">
<meta property="og:type" content="article">
<meta property="og:title" content="Redis学习笔记">
<meta property="og:url" content="https://soft5.github.io/2020/05/25/Redis%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/index.html">
<meta property="og:site_name" content="Hexo">
<meta property="og:description" content="一、Redis的数据类型&数据结构1.Redis数据类型Redis支持五(6)种数据类型,对redis来说,所有的key(键)都是字符串: string(字符串) hash(哈希) list(列表) set(集合) zset(sorted set:有序集合) 注意:Redis5新加了一种数据类型stream。 2.Redis数据结构 list set zset hash BitMap">
<meta property="og:locale" content="en_US">
<meta property="article:published_time" content="2020-05-25T07:14:37.657Z">
<meta property="article:modified_time" content="2020-08-12T09:38:13.573Z">
<meta property="article:author" content="soft5">
<meta name="twitter:card" content="summary">
<link rel="icon" href="/img/avatar.jpg">
<link href="/css/style.css?v=1.0.1" rel="stylesheet">
<link href="/css/hl_theme/atom-light.css?v=1.0.1" rel="stylesheet">
<link href="//cdn.bootcss.com/animate.css/3.5.2/animate.min.css" rel="stylesheet">
<link href="//cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<script src="//cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
<script src="/js/jquery.autocomplete.min.js?v=1.0.1" ></script>
<script src="//cdn.bootcss.com/highlight.js/9.12.0/highlight.min.js"></script>
<script>
hljs.initHighlightingOnLoad();
</script>
<script src="//cdn.bootcss.com/nprogress/0.2.0/nprogress.min.js"></script>
<script src="//cdn.bootcss.com/jquery-cookie/1.4.1/jquery.cookie.min.js" ></script>
<script src="/js/iconfont.js?v=1.0.1" ></script>
<meta name="generator" content="Hexo 4.2.0"></head>
<div style="display: none">
<input class="theme_disqus_on" value="false">
<input class="theme_preload_comment" value="false">
<input class="theme_blog_path" value="">
</div>
<body>
<aside class="nav mobile">
<div class="nav-left">
<a href="/" class="avatar_target">
<img class="avatar" src="/img/avatar.jpg" />
</a>
<div class="author">
<span>soft5</span>
</div>
<div class="icon">
<a title="rss" href="/atom.xml" target="_blank">
<svg class="iconfont-svg" aria-hidden="true">
<use xlink:href="#icon-rss"></use>
</svg>
</a>
<a title="github" href="https://github.com/yelog" target="_blank">
<svg class="iconfont-svg" aria-hidden="true">
<use xlink:href="#icon-github"></use>
</svg>
</a>
<a title="facebook" href="https://www.facebook.com/faker.tops" target="_blank">
<svg class="iconfont-svg" aria-hidden="true">
<use xlink:href="#icon-facebook"></use>
</svg>
</a>
<a title="instagram" href="https://www.facebook.com/faker.tops" target="_blank">
<svg class="iconfont-svg" aria-hidden="true">
<use xlink:href="#icon-instagram"></use>
</svg>
</a>
<a title="reddit" href="https://www.reddit.com/user/yelog/" target="_blank">
<svg class="iconfont-svg" aria-hidden="true">
<use xlink:href="#icon-reddit"></use>
</svg>
</a>
<a title="weibo" href="http://weibo.com/u/2307534817" target="_blank">
<svg class="iconfont-svg" aria-hidden="true">
<use xlink:href="#icon-weibo"></use>
</svg>
</a>
<a title="jianshu" href="https://www.jianshu.com/u/ff56736de7cf" target="_blank">
<svg class="iconfont-svg" aria-hidden="true">
<use xlink:href="#icon-jianshu"></use>
</svg>
</a>
<a title="zhihu" href="https://www.zhihu.com/people/jaytp/activities" target="_blank">
<svg class="iconfont-svg" aria-hidden="true">
<use xlink:href="#icon-zhihu"></use>
</svg>
</a>
<a title="oschina" href="https://my.oschina.net/yelog" target="_blank">
<svg class="iconfont-svg" aria-hidden="true">
<use xlink:href="#icon-oschina"></use>
</svg>
</a>
<a title="email" href="mailto:[email protected]" target="_blank">
<svg class="iconfont-svg" aria-hidden="true">
<use xlink:href="#icon-email"></use>
</svg>
</a>
<a title="qq" href="http://wpa.qq.com/msgrd?v=3&uin=872336115&site=qq&menu=yes" target="_blank">
<svg class="iconfont-svg" aria-hidden="true">
<use xlink:href="#icon-qq"></use>
</svg>
</a>
<a title="kugou" href="https://www.kugou.com/" target="_blank">
<svg class="iconfont-svg" aria-hidden="true">
<use xlink:href="#icon-kugou"></use>
</svg>
</a>
<a title="neteasemusic" href="https://music.163.com/#/user/home?id=88151013" target="_blank">
<svg class="iconfont-svg" aria-hidden="true">
<use xlink:href="#icon-neteasemusic"></use>
</svg>
</a>
</div>
<ul>
<li><div class="all active">全部文章<small>(5)</small></div></li>
</ul>
<div class="left-bottom">
<div class="menus">
</div>
<div><a class="about hasFriend site_url" href="/about">关于</a><a style="width: 50%" class="friends">友链</a></div>
</div>
<input type="hidden" id="yelog_site_posts_number" value="5">
<div style="display: none">
<span id="busuanzi_value_site_uv"></span>
<span id="busuanzi_value_site_pv"></span>
</div>
</div>
<div class="nav-right">
<div class="friends-area">
<div class="friends-title">
友情链接
<i class="back-title-list"></i>
</div>
<div class="friends-content">
<ul>
<li><a target="_blank" href="http://yelog.org/">叶落阁</a></li>
</ul>
</div>
</div>
<div class="title-list">
<form onkeydown="if(event.keyCode === 13){return false;}">
<input id="local-search-input" class="search" type="text" placeholder="Search..." />
<i class="cross"></i>
<span>
<label for="tagswitch">Tags:</label>
<input id="tagswitch" type="checkbox" style="display: none" />
<i id="tagsWitchIcon"></i>
</span>
</form>
<div class="tags-list">
<div class="clearfix"></div>
</div>
<nav id="title-list-nav">
<a class=""
href="/2020/04/28/Java8%E5%AE%9E%E6%88%98%E7%AC%94%E8%AE%B0/"
data-tag=""
data-author="" >
<span class="post-title" title="Java8实战笔记">Java8实战笔记</span>
<span class="post-date" title="2020-04-28 10:29:13">2020/04/28</span>
</a>
<a class=""
href="/2020/04/14/SQL%E6%98%A0%E5%B0%84%E6%96%87%E4%BB%B6%E8%A7%A3%E6%9E%90/"
data-tag=""
data-author="" >
<span class="post-title" title="SQL映射文件解析">SQL映射文件解析</span>
<span class="post-date" title="2020-04-14 10:18:04">2020/04/14</span>
</a>
<a class=""
href="/2020/05/25/Redis%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/"
data-tag=""
data-author="" >
<span class="post-title" title="Redis学习笔记">Redis学习笔记</span>
<span class="post-date" title="2020-05-25 15:14:37">2020/05/25</span>
</a>
<a class=""
href="/2020/05/18/%E9%A2%86%E5%9F%9F%E6%A8%A1%E5%9E%8B-POJO/"
data-tag=""
data-author="" >
<span class="post-title" title="领域模型-POJO">领域模型-POJO</span>
<span class="post-date" title="2020-05-18 15:40:06">2020/05/18</span>
</a>
<a class=""
href="/2020/04/23/%E6%AB%BB%E4%BA%95/"
data-tag=""
data-author="" >
<span class="post-title" title="櫻井">櫻井</span>
<span class="post-date" title="2020-04-23 10:31:14">2020/04/23</span>
</a>
</nav>
</div>
</div>
<div class="hide-list">
<div class="semicircle">
<div class="brackets first"><</div>
<div class="brackets">></div>
</div>
</div>
</aside>
<div class="post index">
<div class="pjax">
<article class="index">
<div class="toc-ref">
<ol class="toc"><li class="toc-item toc-level-1"><a class="toc-link" href="#Soft5-Blog"><span class="toc-text">Soft5 Blog</span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link" href="#Welcome-to-here"><span class="toc-text">Welcome to here!</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#关于Soft5-Blog"><span class="toc-text">关于Soft5 Blog</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#博客平台"><span class="toc-text">博客平台</span></a></li></ol></li></ol>
<style>
.left-col .switch-btn,
.left-col .switch-area {
display: none;
}
.toc-level-3 i,
.toc-level-3 ol {
display: none !important;
}
</style>
</div>
<h1 id="Soft5-Blog"><a href="#Soft5-Blog" class="headerlink" title="Soft5 Blog"></a>Soft5 Blog</h1><h2 id="Welcome-to-here"><a href="#Welcome-to-here" class="headerlink" title="Welcome to here!"></a>Welcome to here!</h2><p>换个平台写点东西,一切都从头开始,不会有太多束缚与杂乱,这一次我会很享受。</p>
<blockquote>
<p>个人博客,没有定位,想写写啥,随心所欲。</p>
</blockquote>
<p>以前的博客写着写着就乱了,不管分类,还是标签,都是越多越乱,主要还是自己懂得太少。一开始的规划,随着站台数据愈来愈多,便跟不上了。随着时间的消磨,博客这面磐石没有更平滑,反而痕迹越多,表面越驳杂,难成宝镜。</p>
<p>所以这次选了一个好的博客模板,来重新写写东西,虽然有些功能很强大很丰富,但也有所局限。只怪现阶段的自己的技术太菜,无法实现自己的想法。在博客这片苍凉的净土,保持渴望,持续的吸取知识和增强技能,让生命变得火热。</p>
<h2 id="关于Soft5-Blog"><a href="#关于Soft5-Blog" class="headerlink" title="关于Soft5 Blog"></a>关于Soft5 Blog</h2><p><strong>Soft5 Blog</strong> 一个表面稍显冷清但内心满怀热忱的少年站点。</p>
<p>到目前为止已经写了<code class="article_number"></code>篇文章, 共<code class="site_word_count"></code>字。</p>
<p>本站访问人数:<code class="site_uv"></code>人次 , 访问量:<code class="site_pv"></code>次</p>
<h2 id="博客平台"><a href="#博客平台" class="headerlink" title="博客平台"></a>博客平台</h2><p>这个博客通过 <a href="https://hexo.io/" target="_blank" rel="noopener">Hexo</a> 生成,部署在 <a href="https://pages.github.com/" target="_blank" rel="noopener">GitHub Pages</a>,主题 <a href="https://github.com/yelog/hexo-theme-3-hexo" target="_blank" rel="noopener">3-hexo</a> 已经在github上开源</p>
<p>主要功能:</p>
<ul>
<li>搜索支持文章标题、标签(#标签)、作者(@作者)</li>
<li>pad/手机等移动端适配</li>
<li>页面全局快捷键 <a href='http://yelog.org/2017/03/24/3-hexo-shortcuts/' target="_blank" rel="noopener">3-hexo快捷键说明</a></li>
</ul>
<p>特别鸣谢 ——— <strong>叶落阁</strong> </p>
</article>
<p>
<a class="dashang" onclick="dashangToggle()">赏</a>
</p>
</div>
<div class="copyright">
<p class="footer-entry">©2016-2019 Yelog</p>
<p class="footer-entry">Built with <a href="https://hexo.io/" target="_blank">Hexo</a> and <a href="https://github.com/yelog/hexo-theme-3-hexo" target="_blank">3-hexo</a> theme</p>
</div>
<div class="full-toc">
<button class="full"><span class="min "></span></button>
<button class="post-toc-menu"><span class="post-toc-menu-icons"></span></button>
<div class="post-toc"><span class="post-toc-title">目录</span>
<div class="post-toc-content">
</div>
</div>
<a class="" id="rocket" ></a>
</div>
</div>
<div class="acParent"></div>
<div class="hide_box" onclick="dashangToggle()"></div>
<div class="shang_box">
<a class="shang_close" onclick="dashangToggle()">×</a>
<div class="shang_tit">
<p>喜欢就点赞,疼爱就打赏</p>
</div>
<div class="shang_payimg">
<div class="pay_img">
<img src="/img/alipay.jpg" class="alipay" title="扫码支持">
<img src="/img/weixin.jpg" class="weixin" title="扫码支持">
</div>
</div>
<div class="shang_payselect">
<span><label><input type="radio" name="pay" checked value="alipay">支付宝</label></span><span><label><input type="radio" name="pay" value="weixin">微信</label></span>
</div>
</div>
</body>
<script src="/js/jquery.pjax.js?v=1.0.1" ></script>
<script src="/js/script.js?v=1.0.1" ></script>
<script>
var img_resize = 'default';
/*作者、标签的自动补全*/
$(function () {
$('.search').AutoComplete({
'data': [],
'itemHeight': 20,
'width': 418
}).AutoComplete('show');
})
function initArticle() {
/*渲染对应的表格样式*/
$(".post .pjax table").addClass("green_title");
/*渲染打赏样式*/
$("input[name=pay]").on("click", function () {
if($("input[name=pay]:checked").val()=="weixin"){
$(".shang_box .shang_payimg .pay_img").addClass("weixin_img");
} else {
$(".shang_box .shang_payimg .pay_img").removeClass("weixin_img");
}
})
/*高亮代码块行号*/
$('pre code').each(function(){
var lines = $(this).text().trim().split('\n').length, widther='';
if (lines>99) {
widther = 'widther'
}
var $numbering = $('<ul/>').addClass('pre-numbering ' + widther).attr("unselectable","on");
$(this).addClass('has-numbering ' + widther)
.parent()
.append($numbering);
for(var i=1;i<=lines;i++){
$numbering.append($('<li/>').text(i));
}
});
/*访问数量*/
$.getScript("//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js");
/*代码高亮,行号对齐*/
$('.pre-numbering').css('line-height',$('.has-numbering').css('line-height'));
}
/*打赏页面隐藏与展示*/
function dashangToggle() {
$(".shang_box").fadeToggle();
$(".hide_box").fadeToggle();
}
</script>
<!--加入行号的高亮代码块样式-->
<style>
pre{
position: relative;
margin-bottom: 24px;
border-radius: 10px;
border: 1px solid #e2dede;
background: #FFF;
overflow: hidden;
}
code.has-numbering{
margin-left: 30px;
}
code.has-numbering.widther{
margin-left: 35px;
}
.pre-numbering{
margin: 0px;
position: absolute;
top: 0;
left: 0;
width: 20px;
padding: 0.5em 3px 0.7em 5px;
border-right: 1px solid #C3CCD0;
text-align: right;
color: #AAA;
background-color: #fafafa;
}
.pre-numbering.widther {
width: 35px;
}
</style>
<!--自定义样式设置-->
<style>
.nav {
width: 542px;
}
.nav.fullscreen {
margin-left: -542px;
}
.nav-left {
width: 120px;
}
@media screen and (max-width: 1468px) {
.nav {
width: 492px;
}
.nav.fullscreen {
margin-left: -492px;
}
.nav-left {
width: 100px;
}
}
@media screen and (max-width: 1024px) {
.nav {
width: 492px;
margin-left: -492px
}
.nav.fullscreen {
margin-left: 0;
}
.nav .hide-list.fullscreen {
left: 492px
}
}
@media screen and (max-width: 426px) {
.nav {
width: 100%;
}
.nav-left {
width: 100%;
}
}
.nav-right .title-list nav a .post-title, .nav-right .title-list #local-search-result a .post-title {
color: #383636;
}
.nav-right .title-list nav a .post-date, .nav-right .title-list #local-search-result a .post-date {
color: #5e5e5f;
}
.nav-right nav a.hover, #local-search-result a.hover{
background-color: #e2e0e0;
}
/*列表样式*/
.post .pjax article .article-entry>ol, .post .pjax article .article-entry>ul, .post .pjax article>ol, .post .pjax article>ul{
border: #e2dede solid 1px;
border-radius: 10px;
padding: 10px 32px 10px 56px;
}
.post .pjax article .article-entry li>ol, .post .pjax article .article-entry li>ul,.post .pjax article li>ol, .post .pjax article li>ul{
padding-top: 5px;
padding-bottom: 5px;
}
.post .pjax article .article-entry>ol>li, .post .pjax article .article-entry>ul>li,.post .pjax article>ol>li, .post .pjax article>ul>li{
margin-bottom: auto;
margin-left: auto;
}
.post .pjax article .article-entry li>ol>li, .post .pjax article .article-entry li>ul>li,.post .pjax article li>ol>li, .post .pjax article li>ul>li{
margin-bottom: auto;
margin-left: auto;
}
/* 背景图样式 */
/*引用块样式*/
/*文章列表背景图*/
.nav-right:before {
content: ' ';
display: block;
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
opacity: 0.3;
background: url("https://i.loli.net/2019/07/22/5d3521411f3f169375.png");
background-repeat: no-repeat;
background-position: 50% 0;
-ms-background-size: cover;
-o-background-size: cover;
-moz-background-size: cover;
-webkit-background-size: cover;
background-size: cover;
}
</style>
</html>