Changelog
Add maxPendingCommands, fix connection and timeout behavior, and speed up commands.
-
add
maxPendingCommandsto fail requests fast under overload (#162)const client = new Memcache({ nodes: ['localhost:11211'], maxPendingCommands: 1000, // default 0: no limit });While a node has that many requests waiting for a response or for its connection to open, a new request to it fails at once instead of waiting:
set()resolvesfalseandget()...
TLS Auto Discovery and TLS+SASL composition, plus pnpm 12 and dependency maintenance.
-
bring TLS to SASL-level support (
769ac99, #134)const client = new Memcache({ nodes: [], tls: true, autoDiscover: { enabled: true, configEndpoint: 'my-cluster.cfg.use1.cache.amazonaws.com:11211', }, });const client = new Memcache({ nodes: ['my-cluster.use1.cache.amazonaws.com:11211'], tls: true, sasl:...
Adds TLS connections (tls / memcaches://), publishes memcachejs.org, and hardens CI/publish.
-
add TLS support (
7a822b9, #115)import { Memcache } from 'memcache'; const client = new Memcache({ nodes: ['my-cache.example.com:11211'], tls: true, // or a tls.ConnectionOptions object, e.g. { ca } });// Per-node TLS without a client-level tls option const client = new...
Maintenance release: dependency and CI upgrades. Minimum supported Node is now 22.19.
- pin the
memcachedtest-service image to1.6.44for reproducible test runs (e3d6b4c, #101) - upgrade
hasheryruntime dependency to v3 — no API or hash-output changes (109dd19, #100) - upgrade
hookifiedruntime dependency to 3.0.1 (f598fe9, #99) - raise minimum Node to 22.19 (
engines.node>=22.19.0) (8eabc21, #98) - upgrade
doculadocs tooling to 2.1.0 (477160a, #97)
Maintenance release: dependency, build, and CI upgrades. Minimum supported Node is now 22.
- raise minimum Node to 22 and adopt pnpm 11 via corepack; CI matrix now Node 22/24/26 (c3f68e2, #90)
- upgrade hookified runtime dependency to v3 — no API changes (f660f54, #89)
- upgrade all GitHub Actions to their latest majors (67d8b27, #88)
- upgrade docula docs tooling to v2 (f6e881b, #87)
- upgrade TypeScript build tooling — tsx, tsdown (109cf2d, #86)
- feat: add configurable maxKeySize option to Memcache client by @jaredwray in https://github.com/jaredwray/memcache/pull/74
- feat: Add value size validation for Memcache write operations by @jaredwray in https://github.com/jaredwray/memcache/pull/75
- feat: add documentation site configuration with Docula by @jaredwray in https://github.com/jaredwray/memcache/pull/76
- chore: upgrading biome, faker, vitest, and types by @jaredwray in https://github.com/jaredwray/memcache/pull/69
- chore: upgrading hookified to 2.1.1 by @jaredwray in https://github.com/jaredwray/memcache/pull/70
- feat: migrating from tsup to tsdown by @jaredwray in https://github.com/jaredwray/memcache/pull/71
- feat: adding in lazyConnect option by @jaredwray in https://github.com/jaredwray/memcache/pull/72
- chore: upgrading rimraf, biome, and types by @jaredwray in https://github.com/jaredwray/memcache/pull/61
- fix: exports ordering clean up by @jaredwray in https://github.com/jaredwray/memcache/pull/62
- chore: upgrading vitest by @jaredwray in https://github.com/jaredwray/memcache/pull/63
- chore: upgrading to hookified v2 by @jaredwray in https://github.com/jaredwray/memcache/pull/64
- fix: fixing all the tests by @jaredwray in https://github.com/jaredwray/memcache/pull/65
- chore: upgrading vitest to 4.0.18 by @jaredwray in https://github.com/jaredwray/memcache/pull/55
- chore: upgrading @faker-js/faker to 10.3.0 by @jaredwray in https://github.com/jaredwray/memcache/pull/56
- chore: upgrading @biomejs/biome to 2.3.15 by @jaredwray in https://github.com/jaredwray/memcache/pull/57
- chore: upgrading hookified to 1.15.1 by @jaredwray in https://github.com/jaredwray/memcache/pull/58
- feat: moving to supporting nodejs 24 by @jaredwray in https://github.com/jaredwray/memcache/pull/46
- chore: upgrading vitest to 4.0.17 by @jaredwray in https://github.com/jaredwray/memcache/pull/47
- chore: upgrading hookified to 1.15.0 by @jaredwray in https://github.com/jaredwray/memcache/pull/48
- feat: adding in AGENTS files by @jaredwray in https://github.com/jaredwray/memcache/pull/49
- feat: adding in modula hash by @jaredwray in https://github.com/jaredwray/memcache/pull/50
- chore: upgrading @biomejs/biome to 2.3.10 by @jaredwray in https://github.com/jaredwray/memcache/pull/42
- chore: upgrading vitest to 4.0.16 by @jaredwray in https://github.com/jaredwray/memcache/pull/43
- chore: upgrading hookified to 1.14.0 by @jaredwray in https://github.com/jaredwray/memcache/pull/44
- feat: updating readme with correct test by @jaredwray in https://github.com/jaredwray/memcache/pull/34
- chore: upgrading vitest to 4.0.13 by @jaredwray in https://github.com/jaredwray/memcache/pull/35
- chore: upgrading tsup to 8.5.1 by @jaredwray in https://github.com/jaredwray/memcache/pull/36
- chore: upgrading hookified to 1.13.0 by @jaredwray in https://github.com/jaredwray/memcache/pull/37
- fix: fixing biomejs config file by @jaredwray in https://github.com/jaredwray/memcache/pull/1
- chore: upgrading hookified to 1.12.0 by @jaredwray in https://github.com/jaredwray/memcache/pull/2
- chore: upgrading @biomejs/biome to 2.2.2 by @jaredwray in https://github.com/jaredwray/memcache/pull/3
- fix: logo fixes by @jaredwray in https://github.com/jaredwray/memcache/pull/4
- feat: adding in jsdocs by @jaredwray in https://github.com/jaredwray/memcache/pull/5