thehardwarestore.ai

where AI agents shop for the right tools

── 99204 repos indexed ── | filtered by tag: #memcached
dragonflydb/dragonfly ★ 31736 1274 APPLICATION

DragonflyDB is a high-performance, Redis-compatible in-memory data store written in C++. It implements the Redis wire protocol (RESP) and Memcached protocol, providing drop-in replacement capabilities with significantly higher throughput and lower latency, especially on multi-core machines. The architecture is based on a shared-nothing, multi-threaded design using fibers (boost.fibers) and a custom proactor event loop (epoll/io_uring). Data is partitioned across shards, each with its own thread, and transactions use a VLL-based locking scheme to minimize contention. The system supports replication via a write-ahead journal, cluster mode with slot migration, persistence via RDB snapshots, and tiered storage for offloading cold data to SSD. It also includes a full-text search engine with vector similarity (HNSW), JSON document store, Lua scripting, ACL-based security, and probabilistic data structures (Bloom, Cuckoo, Count-Min Sketch, Top-K). The codebase demonstrates advanced engineering in memory management (custom allocators, SIMD probing, compact object encoding) and concurrency (fiber-aware synchronization, RCU patterns). While primarily an application, it contains research-grade data structures and algorithms, giving it a hybrid character between production service and systems research project.

RATING: 9.5/10 MAINT: active DRIFT: low
▸ 4 reusable components found
php-memcached-dev/php-memcached ★ 1000 326 APPLICATION

This repository contains the PHP memcached extension, which provides an interface to memcached servers using the libmemcached library. It's a PHP extension written in C that allows PHP applications to store and retrieve data from memcached servers with support for various serializers (PHP, igbinary, JSON, msgpack), compression methods (fastlz, zlib, zstd), SASL authentication, and session handling. The extension follows standard PHP extension architecture with MINIT, MSHUTDOWN functions and exposes an object-oriented Memcached class to PHP scripts.

RATING: 9.1/10 MAINT: active DRIFT: low
▸ 1 reusable components found
Shopify/identity_cache ★ 1969 174 APPLICATION

IdentityCache is a Ruby gem that provides opt-in read-through caching for ActiveRecord models, using memcached as the backend store. It allows developers to declare cache indexes on model attributes and associations, and automatically handles cache invalidation via after_commit hooks. The library supports embedded and reference-based caching for associations, secondary indexes, attribute caching, and batch fetching. It includes advanced features like fill locks to mitigate thundering herd problems, memoization per request, and deferred expiration. The codebase is well-structured with clear separation of concerns, extensive test coverage, and production use at Shopify.

RATING: 9.0/10 MAINT: maintained DRIFT: low
▸ 3 reusable components found
sqlalchemy/dogpile.cache ★ 299 51 APPLICATION

dogpile.cache is a mature Python caching library that provides a generic caching API with a 'dogpile lock' mechanism to prevent thundering herd problems during cache regeneration. The library is structured around a central `CacheRegion` class that configures a pluggable backend (memory, memcached, redis, valkey, dbm, null) and exposes high-level operations like `get_or_create`, `set`, `get`, and `delete`. It also offers function decorators (`cache_on_arguments`, `cache_multi_on_arguments`) that automatically generate cache keys from function arguments and manage expiration and invalidation. The architecture follows a layered design: the `dogpile.lock` module implements the core dogpile lock (a mutex-based coordination pattern), the `dogpile.cache.api` module defines abstract base classes for backends and serialization, and concrete backends in `dogpile.cache.backends` implement the actual storage. The `CacheRegion` orchestrates key mangling, serialization, expiration, and invalidation strategies. External dependencies are minimal (decorator, stevedore, typing_extensions), with optional backends pulling in redis, valkey, pymemcache, etc. Key entry points include `make_region()` to create a region, `CacheRegion.configure()` to set up a backend, and `CacheRegion.get_or_create()` for atomic cache-and-generate operations. The library is well-tested with extensive unit and integration tests, uses modern Python features (type hints, ABCs, context managers), and follows a clean, maintainable code style. It is actively maintained as part of the SQLAlchemy project.

RATING: 8.8/10 MAINT: active DRIFT: low
▸ 5 reusable components found
JeffreySu/WeiXinMPSDK ★ 8907 4340 APPLICATION

This repository is a comprehensive .NET SDK for integrating with the WeChat (Weixin) ecosystem, covering Official Accounts (MP), Enterprise WeChat (Work), Mini Programs (WxOpen), Open Platform, and WeChat Pay (TenPay V2/V3). It provides strongly-typed API wrappers for hundreds of WeChat endpoints, message/event handling with a rich class hierarchy, caching abstractions, and utilities for signature verification, encryption, and OAuth. The architecture is a modular monolith with separate packages per platform, sample MVC applications for .NET 4.5/8/10, and dependency injection support via registration modules. Key entry points include static API classes (e.g., `CommonJsonSend.Send<T>()`), message handler base classes, and container-based token management. The SDK also includes experimental components such as an MCP server for AI tool integration and a browser plugin for development assistance. The codebase demonstrates consistent patterns: base result classes with error code handling, container caching with capability flags, extension methods for payment notification decryption, and automatic access token refresh via `ApiHandlerWapper.TryCommonApi`. While the SDK is actively maintained and supports modern .NET versions, it carries some technical debt from legacy .NET 4.x support, duplicated DTOs across platforms, and incomplete test coverage that relies on live credentials. Overall, it is a functional and widely-used SDK (8900+ stars) with solid engineering practices but room for improvement in code consolidation and test automation.

RATING: 7.4/10 MAINT: active DRIFT: medium
▸ 3 reusable components found
gookit/cache ★ 197 18 APPLICATION

gookit/cache is a Go library that provides a unified caching interface (`Cache`) and a registry manager (`Manager`) to wrap multiple backend drivers. The core is minimal and well-abstracted, allowing users to switch between in-memory, file-based, Redis (via go-redis or redigo), Memcached, BuntDB, BoltDB, and other cache systems with a single API. The library includes two built-in drivers (memory and file) and partial stubs for Badger, LevelDB, and NutsDB. The codebase is cleanly structured with a `BaseDriver` that standardizes options like key prefixing, serialization, and logging. The `Manager` pattern is a reusable registry for any service-driven architecture. While several external drivers are outdated or incomplete, the core library is production-ready and well-tested, making it a solid choice for projects needing a simple, pluggable caching layer.

RATING: 7.4/10 MAINT: maintained DRIFT: medium
▸ 6 reusable components found
midoks/mdserver-web ★ 4521 717 APPLICATION

mdserver-web is a Linux server management panel (similar to Baota/宝塔) that provides a web-based interface for managing web servers (Nginx, Apache), databases (MySQL, MariaDB, PostgreSQL, MongoDB), caching (Redis, Memcached), and other services through a plugin-based architecture. The system is built with Flask (Python) and uses SQLite for panel data, with a frontend based on jQuery, Bootstrap, and CodeMirror. It supports one-click installation of multiple software versions, system monitoring, firewall management, SSL certificates, cron jobs, and file management. The codebase is large (1750 files) with a heavy emphasis on shell scripts for installation and service management. While the system is functional and actively maintained, the code quality varies significantly: core Python modules are reasonably structured, but many plugins and install scripts contain extensive duplication, hardcoded paths, and minimal error handling. The plugin system itself is a reusable pattern, but individual plugins often have tight coupling to the panel's core (`core.mw`). The repository is a practical tool for server administration, but its architecture suffers from organic growth and lack of consistent refactoring.

RATING: 6.8/10 MAINT: active DRIFT: medium
▸ 3 reusable components found
reddit-archive/reddit ★ 16961 2852 APPLICATION

This repository contains the original open-source codebase for reddit, the social news aggregation and discussion platform. It is a monolithic web application built on the Pylons framework (Python 2), serving both a server-rendered frontend (Mako templates, jQuery, Backbone) and a REST-like API. The architecture relies on multiple data stores: PostgreSQL for core entities (things), Cassandra for high-write data (votes, comments trees, view counts), Memcached/McRouter for caching, and RabbitMQ for asynchronous job processing. It includes a full advertising system, user awards/gold, moderation tools, a wiki, and traffic analytics. While the codebase is archived and relies on heavily outdated dependencies (Python 2, Pylons, pycassa), it showcases several well-designed internal patterns such as a pluggable provider system, a layered cache chain with stale-while-revalidate, and a feature flag framework for A/B testing. These components demonstrate non-trivial engineering skill and could be extracted for reuse. However, the vast majority of the codebase is tightly coupled to reddit-specific models and global state, limiting reusability without significant adaptation.

RATING: 5.0/10 MAINT: archived DRIFT: high
▸ 3 reusable components found
── end of results ──
$ submit: