资源简介
还在为环境没有网络,无法安装redis源码包的编译组件而烦恼吗,这款解压即用的redis已编译安装包,完美符合您的要求,解压后进入目录执行src/redis-server redis.conf 即可开启服务
代码片段和文件信息
/*
* 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 */
void __redisAppendCommand(redisContext *c 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(dupsrcsizeof(*
- 上一篇:STM32 中文手册 Datasheet
- 下一篇:南京航空航天大学模电教学课件考研
相关资源
- designofanalogcmosinegratedcircuits(razavi-2
- node-v6.11.0-x64.msi
- Synchronization: A Universal Concept in Nonlin
- canopen 主站 从站 程序 已经调试过 无
- iNode_Linux_64
- visual studio 2013 运行库Redistributable X8
- TinyML Machine Learning with TensorFlow Lite o
- Redis Desktop Manager 0.9.9 Windows x64
- nodal discontinue Galaekin method
- AFirstCourseinOptimizationTheory.pdf
- win7支持的node版本
- mac 工具redis 客户端 Medis 破解版
- 基于Arduino单片机的循迹型小车
- [Arduino编程从零开始].[英].Simon.Monk.扫
- redis集群搭建一主一从一哨兵
- XPEnoboot_DS3615xs_5.2-5967.1.img
- Arduino编程从零开始完整高清扫描
- MIMO Wireless Communications 中文版Claude O
- redis-desktop-manager-0.8.8.384
- PragmataPro 0.828
- MWG 课后习题
- RedisDesktopManager0.9.5-windows-X64支持集群
- Tecnomatix Plant Simulation教学
- [Jean_Meeus]_Astronomical_algorithms(2nd).
-
endnote 参考文献风格st
yles - 高清彩版 Combine_Asynchronous_Programming_
- 佳能canon eos700d数码单反相机固件 v1
- CCF中学生计算机程序设计-入门篇
- Noise of polyphase electric motors
- redis集群所需包,内含redis-3.2.1.gem,
评论
共有 条评论