This page compares the source lines of code (SLOC) of redis/redis and memcached/memcached using cached OctoCounts reports. Code size is not code quality: a larger count only means more source material, not a better or worse project.
As of 2026-09-07, redis/redis contains 397,891 total lines (278,898 code) across 1,194 files, while memcached/memcached contains 56,768 total lines (41,471 code) across 139 files as of 2026-08-26. redis/redis is about 6.7x the size of memcached/memcached by code lines. Code size is not code quality: a larger count only means more source material, not a better or worse project.
| Metric | redis/redis | memcached/memcached |
|---|---|---|
| Files | 1,194 | 139 |
| Total lines | 397,891 | 56,768 |
| Code lines | 278,898 | 41,471 |
| Comment lines | 75,007 | 8,987 |
| Blank lines | 43,986 | 6,310 |
| Languages counted | 12 | 11 |
Top languages in redis/redis: C (68.2% of code), C Header (11.7% of code), JSON (10.6% of code). Top languages in memcached/memcached: C (74.8% of code), C Header (14.5% of code), Lua (5.4% of code). C, C Header appear in both top language lists; JSON, Module-Definition, Autoconf appear only in redis/redis's top languages; Lua, Perl, Automake appear only in memcached/memcached's top languages.
Methodology: both counts come from cached OctoCounts reports generated with tokei. redis/redis was counted at ref unstable (commit 60b4364fef85) on 2026-09-07; memcached/memcached was counted at ref master (commit 2d51e364799b) on 2026-08-26. See the counting methodology for ignored directories and analysis options.
Evidence and next steps:
Note: code size is not code quality. OctoCounts only reports reproducible line counts and makes no claim that either project is better.
redis/redis has more code: 278,898 code lines versus 41,471 for memcached/memcached, about 6.7x as much, based on cached OctoCounts reports as of 2026-09-07.
Not necessarily. SLOC measures size, not complexity, quality, or maintainability. A larger codebase can mean more features, more generated or vendored code, more verbose language idioms, or more tests — none of which imply the code is harder to work with. Use SLOC to gauge the scale of what you'd be reading or maintaining, not as a quality signal for redis/redis, memcached/memcached, or any repository.
Methodology: both counts come from cached OctoCounts reports generated with tokei. redis/redis was counted at ref unstable (commit 60b4364fef85) on 2026-09-07; memcached/memcached was counted at ref master (commit 2d51e364799b) on 2026-08-26. See the counting methodology for ignored directories and analysis options.
Yes. This page shows the default branch for each repository. Use the interactive comparison tool to pick any public GitHub repository, branch, tag, or commit SHA for both sides and get a fresh side-by-side report.