资源简介
REmote DIctionary Server(Redis) 是一个由Salvatore Sanfilippo写的key-value存储系统。
Redis是一个开源的使用ANSI C语言编写、遵守BSD协议、支持网络、可基于内存亦可持久化的日志型、Key-Value数据库,并提供多种语言的API。
代码片段和文件信息
/*
* Copyright (c) 2009-2011 Salvatore Sanfilippo
* Copyright (c) 2010-2011 Pieter Noordhuis
*
* All rights reserved.
*
* Redistribution and use in source and binary forms with or without
* modification are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice
* this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of Redis nor the names of its contributors may be used
* to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS“
* AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR
* CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT LIMITED TO PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE DATA OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY WHETHER IN
* CONTRACT STRICT LIABILITY OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#include “fmacros.h“
#include
#include
#include
#include
#include
#include
#include “async.h“
#include “net.h“
#include “dict.c“
#include “sds.h“
#define _EL_ADD_READ(ctx) do { \
if ((ctx)->ev.addRead) (ctx)->ev.addRead((ctx)->ev.data); \
} while(0)
#define _EL_DEL_READ(ctx) do { \
if ((ctx)->ev.delRead) (ctx)->ev.delRead((ctx)->ev.data); \
} while(0)
#define _EL_ADD_WRITE(ctx) do { \
if ((ctx)->ev.addWrite) (ctx)->ev.addWrite((ctx)->ev.data); \
} while(0)
#define _EL_DEL_WRITE(ctx) do { \
if ((ctx)->ev.delWrite) (ctx)->ev.delWrite((ctx)->ev.data); \
} while(0)
#define _EL_CLEANUP(ctx) do { \
if ((ctx)->ev.cleanup) (ctx)->ev.cleanup((ctx)->ev.data); \
} while(0);
/* Forward declaration of function in hiredis.c */
int __redisAppendCommand(redisContext *c const char *cmd size_t len);
/* Functions managing dictionary of callbacks for pub/sub. */
static unsigned int callbackHash(const void *key) {
return dictGenHashFunction((const unsigned char *)key
sdslen((const sds)key));
}
static void *callbackValDup(void *privdata const void *src) {
((void) privdata);
redisCallback *dup = malloc(sizeof(*dup));
memcpy(dupsrcsiz
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 376 2018-02-03 00:39 redis-4.0.8\.gitignore
文件 150927 2018-02-03 00:39 redis-4.0.8\00-RELEASENOTES
文件 53 2018-02-03 00:39 redis-4.0.8\BUGS
文件 1815 2018-02-03 00:39 redis-4.0.8\CONTRIBUTING
文件 1487 2018-02-03 00:39 redis-4.0.8\COPYING
文件 72 2018-02-03 00:39 redis-4.0.8\deps\hiredis\.gitignore
文件 897 2018-02-03 00:39 redis-4.0.8\deps\hiredis\.travis.yml
文件 4219 2018-02-03 00:39 redis-4.0.8\deps\hiredis\adapters\ae.h
文件 3808 2018-02-03 00:39 redis-4.0.8\deps\hiredis\adapters\glib.h
文件 2275 2018-02-03 00:39 redis-4.0.8\deps\hiredis\adapters\ivykis.h
文件 4587 2018-02-03 00:39 redis-4.0.8\deps\hiredis\adapters\libev.h
文件 3993 2018-02-03 00:39 redis-4.0.8\deps\hiredis\adapters\libevent.h
文件 2569 2018-02-03 00:39 redis-4.0.8\deps\hiredis\adapters\libuv.h
文件 3865 2018-02-03 00:39 redis-4.0.8\deps\hiredis\adapters\macosx.h
文件 4233 2018-02-03 00:39 redis-4.0.8\deps\hiredis\adapters\qt.h
文件 1516 2018-02-03 00:39 redis-4.0.8\deps\hiredis\appveyor.yml
文件 23190 2018-02-03 00:39 redis-4.0.8\deps\hiredis\async.c
文件 5294 2018-02-03 00:39 redis-4.0.8\deps\hiredis\async.h
文件 4906 2018-02-03 00:39 redis-4.0.8\deps\hiredis\CHANGELOG.md
文件 1588 2018-02-03 00:39 redis-4.0.8\deps\hiredis\COPYING
文件 10551 2018-02-03 00:39 redis-4.0.8\deps\hiredis\dict.c
文件 4691 2018-02-03 00:39 redis-4.0.8\deps\hiredis\dict.h
文件 1583 2018-02-03 00:39 redis-4.0.8\deps\hiredis\examples\example-ae.c
文件 1632 2018-02-03 00:39 redis-4.0.8\deps\hiredis\examples\example-glib.c
文件 1418 2018-02-03 00:39 redis-4.0.8\deps\hiredis\examples\example-ivykis.c
文件 1405 2018-02-03 00:39 redis-4.0.8\deps\hiredis\examples\example-libev.c
文件 1455 2018-02-03 00:39 redis-4.0.8\deps\hiredis\examples\example-libevent.c
文件 1445 2018-02-03 00:39 redis-4.0.8\deps\hiredis\examples\example-libuv.c
文件 1654 2018-02-03 00:39 redis-4.0.8\deps\hiredis\examples\example-macosx.c
文件 1047 2018-02-03 00:39 redis-4.0.8\deps\hiredis\examples\example-qt.cpp
............此处省略625个文件信息
- 上一篇:Think-in-cpp
- 下一篇:c++获取网页指定内容
相关资源
- Visual C++ Runtime 2013 x86
- Visual C++ Runtime 2012 x64
- Visual C++ Runtime 2008 x64
- Microsoft Visual C++ 2013 Redistributable Pack
- msvcr120.dll64位与vcredist_x64.exe打包,解
- vcredist_x86.exe
- Microsoft Visual C++ 2013 Redistributable x86
- Microsoft Visual C++ 2008 SP1 Redistributable
- Microsoft Visual C++ 2008 SP1 Redistributable
- vcredist x64 合集 含2005Sp1 2008 2010
- Microsoft Visual C++ 2015 Redistributable (x
- Visual C++ Redistributable for Visual Studio 2
- c++ 2017_vc_redist.x64
- Microsoft Visual C++ 2013 Redistributable Pack
- Visual C++ Redistributable for Visual Studio 2
- redis-desktop-manager-2019.5.0.rar
- Visual C++ 2015 Redistributable Packages.(x6
- Microsoft Visual C++ 2017 Redistributable (x
- Microsoft Visual C++ 2017 Redistributable (x
- redis_helper
- Microsoft Visual C++ Redistributable Package合集
- redis-4.0.11源码(附测试项目)
- redis命令大全(Redis开发运维实践指南
- Redis深度历险:核心原理和应用实践
- vcredist_32_64.exe
- Microsoft Visual C++ 2019 Redistributable wind
- MSVisualC++运行库/Microsoft Visual C++(20
- redis-cluster-4.0.1集群镜像
- Redis数据库32位
- php_redis-2.1.3-5.2-vc6-ts(PHP 5.2.* 的 Red
评论
共有 条评论