file_path
stringlengths
3
280
file_language
stringclasses
66 values
content
stringlengths
1
1.04M
repo_name
stringlengths
5
92
repo_stars
int64
0
154k
repo_description
stringlengths
0
402
repo_primary_language
stringclasses
108 values
developer_username
stringlengths
1
25
developer_name
stringlengths
0
30
developer_company
stringlengths
0
82
src/config.h
C/C++ Header
/* * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * 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 co...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/crc16.c
C
#include "server.h" /* * Copyright 2001-2010 Georges Menie (www.menie.org) * Copyright 2010-2012 Salvatore Sanfilippo (adapted to Redis coding style) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions ...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/crc64.c
C
/* Redis uses the CRC64 variant with "Jones" coefficients and init value of 0. * * Specification of this CRC64 variant follows: * Name: crc-64-jones * Width: 64 bites * Poly: 0xad93d23594c935a9 * Reflected In: True * Xor_In: 0xffffffffffffffff * Reflected_Out: True * Xor_Out: 0x0 * Check("123456789"): 0xe9c6d...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/crc64.h
C/C++ Header
#ifndef CRC64_H #define CRC64_H #include <stdint.h> uint64_t crc64(uint64_t crc, const unsigned char *s, uint64_t l); #ifdef REDIS_TEST int crc64Test(int argc, char *argv[]); #endif #endif
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/db.c
C
/* * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * 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 co...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/debug.c
C
/* * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * 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 co...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/debugmacro.h
C/C++ Header
/* This file contains debugging macros to be used when investigating issues. * * ----------------------------------------------------------------------------- * * Copyright (c) 2016, Salvatore Sanfilippo <antirez at gmail dot com> * All rights reserved. * * Redistribution and use in source and binary forms, with...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/defrag.c
C
/* * Active memory defragmentation * Try to find key / value allocations that need to be re-allocated in order * to reduce external fragmentation. * We do that by scanning the keyspace and for each pointer we have, we can try to * ask the allocator if moving it to a new address will help reduce fragmentation. *...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/dict.c
C
/* Hash Tables Implementation. * * This file implements in memory hash tables with insert/del/replace/find/ * get-random-element operations. Hash tables will auto resize if needed * tables of power of two in size are used, collisions are handled by * chaining. See the source code for more information... :) * * C...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/dict.h
C/C++ Header
/* Hash Tables Implementation. * * This file implements in-memory hash tables with insert/del/replace/find/ * get-random-element operations. Hash tables will auto-resize if needed * tables of power of two in size are used, collisions are handled by * chaining. See the source code for more information... :) * * C...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/endianconv.c
C
/* endinconv.c -- Endian conversions utilities. * * This functions are never called directly, but always using the macros * defined into endianconv.h, this way we define everything is a non-operation * if the arch is already little endian. * * Redis tries to encode everything as little endian (but a few things th...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/endianconv.h
C/C++ Header
/* See endianconv.c top comments for more information * * ---------------------------------------------------------------------------- * * Copyright (c) 2011-2012, Salvatore Sanfilippo <antirez at gmail dot com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modi...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/evict.c
C
/* Maxmemory directive handling (LRU eviction and other policies). * * ---------------------------------------------------------------------------- * * Copyright (c) 2009-2016, Salvatore Sanfilippo <antirez at gmail dot com> * All rights reserved. * * Redistribution and use in source and binary forms, with or wi...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/expire.c
C
/* Implementation of EXPIRE (keys with fixed time to live). * * ---------------------------------------------------------------------------- * * Copyright (c) 2009-2016, Salvatore Sanfilippo <antirez at gmail dot com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without ...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/fmacros.h
C/C++ Header
/* * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * 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 co...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/geo.c
C
/* * Copyright (c) 2014, Matt Stancliff <matt@genges.com>. * Copyright (c) 2015-2016, Salvatore Sanfilippo <antirez@gmail.com>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redi...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/geo.h
C/C++ Header
#ifndef __GEO_H__ #define __GEO_H__ #include "server.h" /* Structures used inside geo.c in order to represent points and array of * points on the earth. */ typedef struct geoPoint { double longitude; double latitude; double dist; double score; char *member; } geoPoint; typedef struct geoArray { ...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/geohash.c
C
/* * Copyright (c) 2013-2014, yinqiwen <yinqiwen@gmail.com> * Copyright (c) 2014, Matt Stancliff <matt@genges.com>. * Copyright (c) 2015-2016, Salvatore Sanfilippo <antirez@gmail.com>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted prov...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/geohash.h
C/C++ Header
/* * Copyright (c) 2013-2014, yinqiwen <yinqiwen@gmail.com> * Copyright (c) 2014, Matt Stancliff <matt@genges.com>. * Copyright (c) 2015, Salvatore Sanfilippo <antirez@gmail.com>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided ...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/geohash_helper.c
C
/* * Copyright (c) 2013-2014, yinqiwen <yinqiwen@gmail.com> * Copyright (c) 2014, Matt Stancliff <matt@genges.com>. * Copyright (c) 2015-2016, Salvatore Sanfilippo <antirez@gmail.com>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted prov...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/geohash_helper.h
C/C++ Header
/* * Copyright (c) 2013-2014, yinqiwen <yinqiwen@gmail.com> * Copyright (c) 2014, Matt Stancliff <matt@genges.com>. * Copyright (c) 2015, Salvatore Sanfilippo <antirez@gmail.com>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided ...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/help.h
C/C++ Header
/* Automatically generated by generate-command-help.rb, do not edit. */ #ifndef __REDIS_HELP_H #define __REDIS_HELP_H static char *commandGroups[] = { "generic", "string", "list", "set", "sorted_set", "hash", "pubsub", "transactions", "connection", "server", "scripting", ...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/hyperloglog.c
C
/* hyperloglog.c - Redis HyperLogLog probabilistic cardinality approximation. * This file implements the algorithm and the exported Redis commands. * * Copyright (c) 2014, Salvatore Sanfilippo <antirez at gmail dot com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without ...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/intset.c
C
/* * Copyright (c) 2009-2012, Pieter Noordhuis <pcnoordhuis at gmail dot com> * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condition...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/intset.h
C/C++ Header
/* * Copyright (c) 2009-2012, Pieter Noordhuis <pcnoordhuis at gmail dot com> * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condition...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/latency.c
C
/* The latency monitor allows to easily observe the sources of latency * in a Redis instance using the LATENCY command. Different latency * sources are monitored, like disk I/O, execution of commands, fork * system call, and so forth. * * ----------------------------------------------------------------------------...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/latency.h
C/C++ Header
/* latency.h -- latency monitor API header file * See latency.c for more information. * * ---------------------------------------------------------------------------- * * Copyright (c) 2014, Salvatore Sanfilippo <antirez at gmail dot com> * All rights reserved. * * Redistribution and use in source and binary fo...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/lazyfree.c
C
#include "server.h" #include "bio.h" #include "atomicvar.h" #include "cluster.h" static size_t lazyfree_objects = 0; pthread_mutex_t lazyfree_objects_mutex = PTHREAD_MUTEX_INITIALIZER; /* Return the number of currently pending objects to free. */ size_t lazyfreeGetPendingObjectsCount(void) { size_t aux; atomi...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/listpack.c
C
/* Listpack -- A lists of strings serialization format * * This file implements the specification you can find at: * * https://github.com/antirez/listpack * * Copyright (c) 2017, Salvatore Sanfilippo <antirez at gmail dot com> * All rights reserved. * * Redistribution and use in source and binary forms, with ...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/listpack.h
C/C++ Header
/* Listpack -- A lists of strings serialization format * * This file implements the specification you can find at: * * https://github.com/antirez/listpack * * Copyright (c) 2017, Salvatore Sanfilippo <antirez at gmail dot com> * All rights reserved. * * Redistribution and use in source and binary forms, with ...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/listpack_malloc.h
C/C++ Header
/* Listpack -- A lists of strings serialization format * https://github.com/antirez/listpack * * Copyright (c) 2017, Salvatore Sanfilippo <antirez at gmail dot com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the follow...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/localtime.c
C
/* * Copyright (c) 2018, Salvatore Sanfilippo <antirez at gmail dot com> * 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 copyrig...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/lolwut.c
C
/* * Copyright (c) 2018, Salvatore Sanfilippo <antirez at gmail dot com> * 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 copyrig...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/lolwut5.c
C
/* * Copyright (c) 2018, Salvatore Sanfilippo <antirez at gmail dot com> * 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 copyrig...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/lzf.h
C/C++ Header
/* * Copyright (c) 2000-2008 Marc Alexander Lehmann <schmorp@schmorp.de> * * Redistribution and use in source and binary forms, with or without modifica- * tion, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * ...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/lzfP.h
C/C++ Header
/* * Copyright (c) 2000-2007 Marc Alexander Lehmann <schmorp@schmorp.de> * * Redistribution and use in source and binary forms, with or without modifica- * tion, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * ...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/lzf_c.c
C
/* * Copyright (c) 2000-2010 Marc Alexander Lehmann <schmorp@schmorp.de> * * Redistribution and use in source and binary forms, with or without modifica- * tion, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * ...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/lzf_d.c
C
/* * Copyright (c) 2000-2010 Marc Alexander Lehmann <schmorp@schmorp.de> * * Redistribution and use in source and binary forms, with or without modifica- * tion, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * ...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/memtest.c
C
/* * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * 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 co...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/mkreleasehdr.sh
Shell
#!/bin/sh GIT_SHA1=`(git show-ref --head --hash=8 2> /dev/null || echo 00000000) | head -n1` GIT_DIRTY=`git diff --no-ext-diff 2> /dev/null | wc -l` BUILD_ID=`uname -n`"-"`date +%s` if [ -n "$SOURCE_DATE_EPOCH" ]; then BUILD_ID=$(date -u -d "@$SOURCE_DATE_EPOCH" +%s 2>/dev/null || date -u -r "$SOURCE_DATE_EPOCH" +%s ...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/module.c
C
/* * Copyright (c) 2016, Salvatore Sanfilippo <antirez at gmail dot com> * 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 copyrig...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/modules/gendoc.rb
Ruby
# gendoc.rb -- Converts the top-comments inside module.c to modules API # reference documentation in markdown format. # Convert the C comment to markdown def markdown(s) s = s.gsub(/\*\/$/,"") s = s.gsub(/^ \* {0,1}/,"") s = s.gsub(/^\/\* /,"") s.chop! while s[-1] == "\n" || s[-1] == " " ...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/modules/helloblock.c
C
/* Helloblock module -- An example of blocking command implementation * with threads. * * ----------------------------------------------------------------------------- * * Copyright (c) 2016, Salvatore Sanfilippo <antirez at gmail dot com> * All rights reserved. * * Redistribution and use in source and binary f...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/modules/hellocluster.c
C
/* Helloworld cluster -- A ping/pong cluster API example. * * ----------------------------------------------------------------------------- * * Copyright (c) 2018, Salvatore Sanfilippo <antirez at gmail dot com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modi...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/modules/hellodict.c
C
/* Hellodict -- An example of modules dictionary API * * This module implements a volatile key-value store on top of the * dictionary exported by the Redis modules API. * * ----------------------------------------------------------------------------- * * Copyright (c) 2018, Salvatore Sanfilippo <antirez at gmail...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/modules/hellotimer.c
C
/* Timer API example -- Register and handle timer events * * ----------------------------------------------------------------------------- * * Copyright (c) 2018, Salvatore Sanfilippo <antirez at gmail dot com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modif...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/modules/hellotype.c
C
/* This file implements a new module native data type called "HELLOTYPE". * The data structure implemented is a very simple ordered linked list of * 64 bit integers, in order to have something that is real world enough, but * at the same time, extremely simple to understand, to show how the API * works, how a new d...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/modules/helloworld.c
C
/* Helloworld module -- A few examples of the Redis Modules API in the form * of commands showing how to accomplish common tasks. * * This module does not do anything useful, if not for a few commands. The * examples are designed in order to show the API. * * ------------------------------------------------------...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/modules/testmodule.c
C
/* Module designed to test the Redis modules subsystem. * * ----------------------------------------------------------------------------- * * Copyright (c) 2016, Salvatore Sanfilippo <antirez at gmail dot com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modifi...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/multi.c
C
/* * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * 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 co...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/networking.c
C
/* * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * 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 co...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/notify.c
C
/* * Copyright (c) 2013, Salvatore Sanfilippo <antirez at gmail dot com> * 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 copyrig...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/object.c
C
/* Redis Object implementation. * * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * 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 sour...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/pqsort.c
C
/* The following is the NetBSD libc qsort implementation modified in order to * support partial sorting of ranges for Redis. * * Copyright(C) 2009-2012 Salvatore Sanfilippo. All rights reserved. * * The original copyright notice follows. */ /* $NetBSD: qsort.c,v 1.19 2009/01/30 23:38:44 lukem Exp $ */ /*- * Co...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/pqsort.h
C/C++ Header
/* The following is the NetBSD libc qsort implementation modified in order to * support partial sorting of ranges for Redis. * * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, a...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/pubsub.c
C
/* * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * 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 co...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/quicklist.c
C
/* quicklist.c - A doubly linked list of ziplists * * Copyright (c) 2014, Matt Stancliff <matt@genges.com> * 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...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/quicklist.h
C/C++ Header
/* quicklist.h - A generic doubly linked quicklist implementation * * Copyright (c) 2014, Matt Stancliff <matt@genges.com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistrib...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/rand.c
C
/* Pseudo random number generation functions derived from the drand48() * function obtained from pysam source code. * * This functions are used in order to replace the default math.random() * Lua implementation with something having exactly the same behavior * across different systems (by default Lua uses libc's r...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/rand.h
C/C++ Header
/* * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * 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 co...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/rax.c
C
/* Rax -- A radix tree implementation. * * Copyright (c) 2017-2018, Salvatore Sanfilippo <antirez at gmail dot com> * 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 ...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/rax.h
C/C++ Header
/* Rax -- A radix tree implementation. * * Copyright (c) 2017-2018, Salvatore Sanfilippo <antirez at gmail dot com> * 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 ...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/rax_malloc.h
C/C++ Header
/* Rax -- A radix tree implementation. * * Copyright (c) 2017, Salvatore Sanfilippo <antirez at gmail dot com> * 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 so...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/rdb.c
C
/* * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * 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 co...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/rdb.h
C/C++ Header
/* * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * 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 co...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/redis-benchmark.c
C
/* Redis benchmark utility. * * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * 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 c...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/redis-check-aof.c
C
/* * Copyright (c) 2009-2012, Pieter Noordhuis <pcnoordhuis at gmail dot com> * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condition...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/redis-check-rdb.c
C
/* * Copyright (c) 2016, Salvatore Sanfilippo <antirez at gmail dot com> * 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 copyrig...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/redis-cli.c
C
/* Redis CLI (command line interface) * * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * 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 o...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/redis-trib.rb
Ruby
#!/usr/bin/env ruby def colorized(str, color) return str if !(ENV['TERM'] || '')["xterm"] color_code = { white: 29, bold: '29;1', black: 30, red: 31, green: 32, yellow: 33, blue: 34, magenta: 35, cyan: 36, gray: 37 }[color] ...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/redisassert.h
C/C++ Header
/* redisassert.h -- Drop in replacements assert.h that prints the stack trace * in the Redis logs. * * This file should be included instead of "assert.h" inside libraries used by * Redis that are using assertions, so instead of Redis disappearing with * SIGABORT, we get the details and stack trace...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/redismodule.h
C/C++ Header
#ifndef REDISMODULE_H #define REDISMODULE_H #include <sys/types.h> #include <stdint.h> #include <stdio.h> /* ---------------- Defines common between core and modules --------------- */ /* Error status return values. */ #define REDISMODULE_OK 0 #define REDISMODULE_ERR 1 /* API versions. */ #define REDISMODULE_APIVER...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/release.c
C
/* * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * 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 co...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/release.h
C/C++ Header
#define REDIS_GIT_SHA1 "00000000" #define REDIS_GIT_DIRTY " 0" #define REDIS_BUILD_ID "zhaxuejie.local-1572165711"
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/replication.c
C
/* Asynchronous replication implementation. * * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistribut...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/rio.c
C
/* rio.c is a simple stream-oriented I/O abstraction that provides an interface * to write code that can consume/produce data using different concrete input * and output devices. For instance the same rdb.c code using the rio * abstraction can be used to read and write the RDB format using in-memory * buffers or fi...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/rio.h
C/C++ Header
/* * Copyright (c) 2009-2012, Pieter Noordhuis <pcnoordhuis at gmail dot com> * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condition...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/scripting.c
C
/* * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * 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 co...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/sds.c
C
/* SDSLib 2.0 -- A C dynamic strings library * * Copyright (c) 2006-2015, Salvatore Sanfilippo <antirez at gmail dot com> * Copyright (c) 2015, Oran Agra * Copyright (c) 2015, Redis Labs, Inc * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permit...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/sds.h
C/C++ Header
/* SDSLib 2.0 -- A C dynamic strings library * * Copyright (c) 2006-2015, Salvatore Sanfilippo <antirez at gmail dot com> * Copyright (c) 2015, Oran Agra * Copyright (c) 2015, Redis Labs, Inc * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permit...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/sdsalloc.h
C/C++ Header
/* SDSLib 2.0 -- A C dynamic strings library * * Copyright (c) 2006-2015, Salvatore Sanfilippo <antirez at gmail dot com> * Copyright (c) 2015, Redis Labs, Inc * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following c...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/sentinel.c
C
/* Redis Sentinel implementation * * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * 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 sou...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/server.c
C
/* * Copyright (c) 2009-2016, Salvatore Sanfilippo <antirez at gmail dot com> * 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 co...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/server.h
C/C++ Header
/* * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * 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 co...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/setproctitle.c
C
/* ========================================================================== * setproctitle.c - Linux/Darwin setproctitle. * -------------------------------------------------------------------------- * Copyright (C) 2010 William Ahern * Copyright (C) 2013 Salvatore Sanfilippo * Copyright (C) 2013 Stam He * *...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/sha1.c
C
/* from valgrind tests */ /* ================ sha1.c ================ */ /* SHA-1 in C By Steve Reid <steve@edmweb.com> 100% Public Domain Test Vectors (from FIPS PUB 180-1) "abc" A9993E36 4706816A BA3E2571 7850C26C 9CD0D89D "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq" 84983E44 1C3BD26E BAAE4AA1 F9...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/sha1.h
C/C++ Header
#ifndef SHA1_H #define SHA1_H /* ================ sha1.h ================ */ /* SHA-1 in C By Steve Reid <steve@edmweb.com> 100% Public Domain */ typedef struct { uint32_t state[5]; uint32_t count[2]; unsigned char buffer[64]; } SHA1_CTX; void SHA1Transform(uint32_t state[5], const unsigned char buffer[64...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/siphash.c
C
/* SipHash reference C implementation Copyright (c) 2012-2016 Jean-Philippe Aumasson <jeanphilippe.aumasson@gmail.com> Copyright (c) 2012-2014 Daniel J. Bernstein <djb@cr.yp.to> Copyright (c) 2017 Salvatore Sanfilippo <antirez@gmail.com> To the extent possible under law, the author(s) have dedicated...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/slowlog.c
C
/* Slowlog implements a system that is able to remember the latest N * queries that took more than M microseconds to execute. * * The execution time to reach to be logged in the slow log is set * using the 'slowlog-log-slower-than' config directive, that is also * readable and writable using the CONFIG SET/GET com...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/slowlog.h
C/C++ Header
/* * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * 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 co...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/solarisfixes.h
C/C++ Header
/* Solaris specific fixes. * * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * 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 co...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/sort.c
C
/* SORT command and helper functions. * * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * 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 o...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/sparkline.c
C
/* sparkline.c -- ASCII Sparklines * This code is modified from http://github.com/antirez/aspark and adapted * in order to return SDS strings instead of outputting directly to * the terminal. * * --------------------------------------------------------------------------- * * Copyright(C) 2011-2014 Salvatore Sanf...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/sparkline.h
C/C++ Header
/* sparkline.h -- ASCII Sparklines header file * * --------------------------------------------------------------------------- * * Copyright(C) 2011-2014 Salvatore Sanfilippo <antirez@gmail.com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are per...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/stream.h
C/C++ Header
#ifndef STREAM_H #define STREAM_H #include "rax.h" #include "listpack.h" /* Stream item ID: a 128 bit number composed of a milliseconds time and * a sequence counter. IDs generated in the same millisecond (or in a past * millisecond if the clock jumped backward) will use the millisecond time * of the latest genera...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/syncio.c
C
/* Synchronous socket and file I/O operations useful across the core. * * Copyright (c) 2009-2010, Salvatore Sanfilippo <antirez at gmail dot com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are ...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/t_hash.c
C
/* * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * 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 co...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/t_list.c
C
/* * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * 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 co...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/t_set.c
C
/* * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * 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 co...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech
src/t_stream.c
C
/* * Copyright (c) 2017, Salvatore Sanfilippo <antirez at gmail dot com> * 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 copyrig...
zhayujie/condis
2
Expanded version of redis with strong consistent base on raft.
C
zhayujie
Minimal Future Tech