Hacker GitHub

← All repos

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

Mentions per year 165 mentions · busiest year 2018 (27)
20082026
  1. …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
  2. …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
  3. …being stored for this, there is a periodic active scan and manual measurement. See more here: https://github.com/antirez/redis/pull/3720
    comment by ihsw2 · 2017-07-14 · in Redis 4.0
  4. …://issues.apache.org/jira/browse/COUCHDB-2248 [3] - https://code.djangoproject.com/ticket/22667 [4] - https://github.com/antirez/redis/issues/3185
    comment by randomdrake · 2017-07-14 · in Redis 4.0
  5. …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
  6. ▲ 4
    Best Redis Issue
    story by psiclops · 2017-04-27 · 0 comments
  7. …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
  8. …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
  9. 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?
  10. …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?
  11. 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…
  12. 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?
  13. 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.…
  14. …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
  15. ▲ 4
    Active Memory Defragmentation Added to Redis
    story by dvirsky · 2017-01-11 · 2 comments
  16. …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]
  17. …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
  18. 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
  19. …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
  20. …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
  21. …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]…
  22. It's the PC version of master/slave. See [0] for the original madness... [0] https://github.com/antirez/redis/issues/3185
  23. …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
  24. …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
  25. ▲ 121
    SWAPDB Redis command
    story by openmaze · 2016-10-14 · 19 comments
  26. Try Redis: https://github.com/antirez/redis Or Lua: https://github.com/LuaDist/lua
  27. …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
  28. ▲ 11
    Replace terms “Master” and “Slave” for databases
    story by briandear · 2016-08-23 · 7 comments
  29. …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...
  30. …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
  31. Here are a few exceptions https://www.sqlite.org https://github.com/antirez/redis
  32. ▲ 3
    Redis history file world readable
    story by kpcyrd · 2016-07-25 · 0 comments
  33. …https://github.com/torvalds/linux/search?q=goto https://github.com/FFmpeg/FFmpeg/search?q=goto https://github.com/antirez/redis/search?q=goto
  34. …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
  35. There are also lots of examples from Antirez himself in the source: https://github.com/antirez/redis/blob/unstable/src/modules/h...
  36. 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
  37. Direct link: https://github.com/antirez/redis/blob/unstable/src/modules/I...
    comment by ecesena · 2016-05-10 · in Redis modules
  38. …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…
  39. ▲ 6
    Issue to Replace “master” and “slave” terms in Redis
    story by fforflo · 2016-04-27 · 4 comments
  40. ▲ 2
    Replace “master” and “slave” terms in Redis
    story by lladnar · 2016-04-23 · 1 comment
  41. …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
  42. …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
  43. 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
  44. …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…
  45. …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
  46. 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?
  47. 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?
  48. …I'm currently integrating, refactoring and fixing the original code, in the context of this branch: https://github.com/antirez/redis/commits/geo So far the code was simplified and polished, fixed (it did not returned the right set of…
    comment by antirez · 2015-06-24 · in Redis Geo
  49. Follow along at home: https://github.com/antirez/redis/commits/geo
    comment by slowernet · 2015-06-24 · in Redis Geo
  50. …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