antirez/redis
View on GitHub ↗ ★ 168 C
Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes, Streams, HyperLogLogs, Bitmaps.
165 mentions on Hacker News by 142 people: 33 stories, 132 comments · first 2009-09-03 · latest 2020-06-30
20082026
-
…been impressed with. Short, readable functions and good comments make it quite easy to follow. [1]: https://github.com/antirez/redis
comment by runlevel1 · 2017-10-02 · in Interesting Codebases -
…used for the STREAM type? I am hoping it would be in place before you publish benchmarks for it. https://github.com/antirez/redis/pull/3889
comment by fancy_pantser · 2017-07-14 · in Redis on the Raspberry Pi: Adventures in unaligned lands -
…void∗ or macros, or both, in order to roll their own generic data structures. > Look at Redis, https://github.com/antirez/redis/blob/unstable/src/adlist.h — generic doubly-linked list with void∗ https://github.com/antirez/redis/blob/unstabl…
comment by pcwalton · 2017-06-15 · in Go and Simplicity Debt -
▲ 4
Best Redis Issuestory by psiclops · 2017-04-27 · 0 comments
-
…Adding systemd service units to redis proper, in contrast, has been stalled for a while now: * https://github.com/antirez/redis/pull/2004 * https://github.com/antirez/redis/issues/3251
comment by JdeBP · 2017-03-19 · in Properly setting up Redis and Sidekiq in production on Ubuntu 16.04 -
…includes server.h have to include these 34 files before including server.h? Seems insane to me. https://github.com/antirez/redis/blob/unstable/src/server.h
comment by planteen · 2017-03-13 · in Notes on Programming in C – Rob Pike (1989) -
A URL to the actual source helps, I think, to put it in context: https://github.com/antirez/redis/blob/d680eb6dbdf2d2030cb96e... The parent poster didn't link, so I lacked the context to really evaluate it. Your persistence at waving this…
comment by deathanatos · 2017-03-13 · in Ask HN: What are some examples of good code? -
…well written. However, is it common for production C code to have a single file with 5,300+ lines? https://github.com/antirez/redis/blob/4.0/src/cluster.c
comment by nodesocket · 2017-03-13 · in Ask HN: What are some examples of good code? -
Not Ruby but for C code, I like Redis's code: https://github.com/antirez/redis/tree/unstable/src I don't personally use the product, but I find the source well written and always share it as an example of nicely done C code. Here is some…
comment by rdtsc · 2017-03-13 · in Ask HN: What are some examples of good code? -
I've read that Redis ( https://github.com/antirez/redis ) has well written code, in C.
comment by mathewpeterson · 2017-03-13 · in Ask HN: What are some examples of good code? -
Not a prep course, but for example Redis has a very good source code overview here https://github.com/antirez/redis#redis-internals More remarkable is the fact that antirez updated the documentation in response to a post in Reddit.…
comment by saurabhjha · 2017-03-09 · in CPython internals: A ten-hour codewalk through the Python interpreter (2015) -
…productive communities, making politically motivated and technically useless pull requests (e.g. https://github.com/antirez/redis/issues/3185 ) or institute political rules called things like "codes of conduct" that allow them to exclude…
comment by wyager · 2017-01-26 · in Abusing Contributors is not OK -
▲ 4
Active Memory Defragmentation Added to Redisstory by dvirsky · 2017-01-11 · 2 comments
-
…Found this from the Redis code[1] (I was curious, too). [0]: https://arxiv.org/abs/1612.02284 [1]: https://github.com/antirez/redis/blob/87538cb7fe19b567118944...
comment by octernion · 2016-12-22 · in Cardinality Estimation (2011) [pdf] -
…elephant, take a look at its ActiveJob [7] sub-framework. 1: https://github.com/redis/redis-rb 2: https://github.com/antirez/redis 3: https://github.com/facebook/react 4: https://facebook.github.io/react/contributing/codebase-overv... 5:…
comment by mhink · 2016-12-19 · in One Way to Improve Your Coding -
Yes, that is correct. The code checks the encoding at runtime ( https://github.com/antirez/redis/blob/8444b46d20ef9c8de3f7e2... ) and converts between the structures as needed (see calls to `zsetConvert`). The alternative (for large zsets)…
comment by catwell · 2016-12-19 · in Skip Lists Done Right -
…or whatever - there is a config setting for that (-max-ziplist-entries and -max-ziplist-value). [1] https://github.com/antirez/redis/commit/5a86ab47995586f0a0ef...
comment by gtrubetskoy · 2016-12-19 · in Skip Lists Done Right -
…a "ziplist". The implementation (especially the format description at the top) is worth a read: https://github.com/antirez/redis/blob/90a6f7fc98df849a9890ab... For those who are familiar with pre-2.6 Redis code, there used to be something…
comment by catwell · 2016-12-19 · in Skip Lists Done Right -
…It was a pleasant surprise to find that this functionality is built right into Rust's compiler. [1] https://github.com/antirez/redis/blob/unstable/src/modules/I... [2] https://doc.rust-lang.org/book/ffi.html [3]…
comment by brandur · 2016-11-17 · in Show HN: Redis-cell, an API rate limiter as a Redis module, written in Rust -
It's the PC version of master/slave. See [0] for the original madness... [0] https://github.com/antirez/redis/issues/3185
comment by omginternets · 2016-10-25 · in Baidu File System – A distributed file system for real-time applications -
…complaint: https://www.drupal.org/node/2275877 https://github.com/rust-lang/rust-buildbot/issues/2 https://github.com/antirez/redis/issues/3185 I just mentioned it because I notice a greater sensitivity about language in the npm community,…
comment by dictum · 2016-10-23 · in NPM v4.0.0 -
…spirals of idiocy such as [0] and [1]. [0] - https://news.ycombinator.com/item?id=7801646 [1] - https://github.com/antirez/redis/issues/3185
comment by ominous · 2016-10-17 · in Peter Thiel, YC, and hard decisions -
▲ 121
SWAPDB Redis commandstory by openmaze · 2016-10-14 · 19 comments
-
Try Redis: https://github.com/antirez/redis Or Lua: https://github.com/LuaDist/lua
comment by slewis · 2016-09-17 · in Ask HN: What are some examples of well written C/C++ codebases? -
…tps://github.com/kubernetes/kubernetes/issues/27430 https://github.com/ardanlabs/gotraining/issues/75 https://github.com/antirez/redis/issues/3185 https://github.com/syl20bnr/spacemacs/pull/3484 https://github.com/TryGhost/Ghost/issues/5889…
comment by waterphone · 2016-09-05 · in Inclusivity Is a Joke -
▲ 11
Replace terms “Master” and “Slave” for databasesstory by briandear · 2016-08-23 · 7 comments
-
…will modify a records. Copy-on-write mechanism simply prevents it. Redis save snapshot code: https://github.com/antirez/redis/blob/unstable/src/rdb.c#L99...
comment by kostyash · 2016-08-17 · in Fork() without exec() is dangerous in large programs -
…Redis Cluster could be added as a separate system. [1] https://aphyr.com/posts/283-jepsen-redis [2] https://github.com/antirez/redis/issues/2672
comment by DivineTraube · 2016-08-15 · in NoSQL Databases: A Survey and Decision Guidance -
Here are a few exceptions https://www.sqlite.org https://github.com/antirez/redis
comment by ontouchstart · 2016-08-07 · in Gary Kildall and Collegial Entrepreneurship (1997) -
▲ 3
Redis history file world readablestory by kpcyrd · 2016-07-25 · 0 comments
-
…https://github.com/torvalds/linux/search?q=goto https://github.com/FFmpeg/FFmpeg/search?q=goto https://github.com/antirez/redis/search?q=goto
comment by rossy · 2016-07-21 · in Windows File System Proxy – FUSE-Like Capability for Windows -
…although I don't use Redis as much anymore and I have not looked at its code for a long time. [1] https://github.com/antirez/redis/pull/1232
comment by catwell · 2016-05-24 · in Programmers are not different, they need simple UIs -
There are also lots of examples from Antirez himself in the source: https://github.com/antirez/redis/blob/unstable/src/modules/h...
comment by bndw · 2016-05-11 · in Creating a Redis Module in 15 Lines of Code -
The docs explain the module system ( https://github.com/antirez/redis/blob/unstable/src/modules/I... ) but it doesn't quiet explain what the system is for. I couldn't quite get that from reading the blog post or the doc page. Specifically:…
comment by educar · 2016-05-11 · in Redis Loadable Modules System -
Direct link: https://github.com/antirez/redis/blob/unstable/src/modules/I...
comment by ecesena · 2016-05-10 · in Redis modules -
…I've been personally impressed with. I hope you don't mind a non-Github repo in there.. C - REDIS @ https://github.com/antirez/redis - Postgresql @ http://git.postgresql.org/gitweb/?p=postgresql.git;a=tree;f=src;hb=HEAD Java - Spring…
comment by phaas · 2016-05-01 · in Ask HN: What are examples of GitHub repositories with high code quality? -
▲ 6
Issue to Replace “master” and “slave” terms in Redisstory by fforflo · 2016-04-27 · 4 comments
-
▲ 2
Replace “master” and “slave” terms in Redisstory by lladnar · 2016-04-23 · 1 comment
-
…down the best C I've ever seen. And it's not just the code that's beautiful - the tests are too. https://github.com/antirez/redis/blob/unstable/src/dict.c
comment by danielvf · 2016-01-31 · in Ask HN: What's the most elegant piece of code you've seen? -
…branch, or if the master branch is not the branch that points to the last commit you made. i.e. https://github.com/antirez/redis
comment by zatkin · 2015-11-22 · in Show HN: First Commit – find the first commit of any GitHub project -
https://github.com/antirez/redis/blob/unstable/redis.conf#L4... # Command renaming. # It is possible to change the name of dangerous commands in a shared # environment. # For instance the CONFIG command may be renamed into something # hard…
comment by nnx · 2015-11-10 · in A few things about Redis security -
…tps://news.ycombinator.com/item?id=9558196 Rwasa: https://news.ycombinator.com/item?id=9948749 Redis: https://github.com/antirez/redis (e.g. changing it in order to call the DB operations directly from same-process, without doing…
comment by faragon · 2015-08-06 · in “The Dream of Internet Freedom Is Dying” -
…hub.com/sepeth/python-skiplist/commit/00ae7f94246... Redis's skiplist is also using the same feature: https://github.com/antirez/redis/blob/unstable/src/server.h#...
comment by sepeth · 2015-08-02 · in Strange C Syntax -
Redis' src is very clean and easy to dive into. https://github.com/antirez/redis
comment by lastofus · 2015-07-17 · in Ask HN: Good C codebases to read? -
I find https://github.com/antirez/redis one of the best C codebase to read.
comment by miguel250 · 2015-07-16 · in Ask HN: Good C codebases to read? -
…string" object encoding is and what workloads it helps with? The closest thing I can find is https://github.com/antirez/redis/issues/543 , which seems pretty old.
comment by simon_weber · 2015-04-01 · in Redis 3.0.0 is out