{"_id":"connect-memcached","_rev":"17-70f029d54b792f39c7765c07827f0006","name":"connect-memcached","dist-tags":{"latest":"3.0.0"},"versions":{"0.0.2":{"name":"connect-memcached","version":"0.0.2","keywords":["memcached","connection","session","store","cache"],"author":{"name":"Michał Thoma","email":"michal@balor.pl"},"_id":"connect-memcached@0.0.2","dist":{"shasum":"64ff07d85caa8179c6f818c6f404fef7f96a6b16","tarball":"https://registry.npmjs.org/connect-memcached/-/connect-memcached-0.0.2.tgz","integrity":"sha512-IBba+f9q0B+XqlEmqV9oNCDRN3LsBt8dSyxUX0SUH5XpjIExMc5wZvYHSaK8M4hnED5Hf2QjriWDifm6cySc/g==","signatures":[{"sig":"MEQCIGlrBk+AAPovBHrojcYgS8Fu2ajpuv+4aZ31R3hC+pPqAiBRzrxb1V4t5uH3VnVNF6RFc1CJXhVctUMh1Jy7sPIXzw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index","engines":{"node":">=0.4.7"},"scripts":{},"repository":{"url":"git://github.com/balor/connect-memcached.git","type":"git"},"_npmVersion":"1.0.11","description":"Memcached session store for Connect","directories":{"lib":"./lib"},"_nodeVersion":"v0.4.8","dependencies":{"connect":"*","memcached":">= 0.0.1"},"_defaultsLoaded":true,"devDependencies":{},"_engineSupported":true},"0.0.3":{"name":"connect-memcached","version":"0.0.3","keywords":["memcached","connection","session","store","cache"],"author":{"name":"Michał Thoma","email":"michal@balor.pl"},"_id":"connect-memcached@0.0.3","maintainers":[{"name":"balor","email":"michal@balor.pl"}],"dist":{"shasum":"82c81d1a836ee369cfdf13a081d210ab68e1601f","tarball":"https://registry.npmjs.org/connect-memcached/-/connect-memcached-0.0.3.tgz","integrity":"sha512-LaaYDOnIdKVjuALBikygRKFXcVu/EMk2R4S8d8JO+2AhJkWNH3VuVYxacInRmaY7rE+RppWaDKzYPmMUIp1peQ==","signatures":[{"sig":"MEYCIQDGVu46lca4dlVgmJ+3MZOiYIoJwlAzp40frZ2/jXTWNwIhAJXlLkzoKJBSgN4YzM3VeNMGUECzZp8YxYaoTHQTEB4L","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index","engines":{"node":">=0.4.7"},"_npmUser":{"name":"balor","email":"michal@balor.pl"},"repository":{"url":"git://github.com/balor/connect-memcached.git","type":"git"},"_npmVersion":"1.1.4","description":"Memcached session store for Connect","directories":{"lib":"./lib"},"_nodeVersion":"v0.6.8","dependencies":{"memcached":">= 0.0.1"},"_defaultsLoaded":true,"devDependencies":{"connect":">= 1.4.x"},"_engineSupported":true,"optionalDependencies":{}},"0.0.6":{"name":"connect-memcached","version":"0.0.6","keywords":["memcached","connection","session","store","cache"],"author":{"name":"Michał Thoma","email":"me@balor.pl"},"_id":"connect-memcached@0.0.6","maintainers":[{"name":"balor","email":"michal@balor.pl"}],"dist":{"shasum":"af3c355c4bd838ddcd8470273b6340180930d210","tarball":"https://registry.npmjs.org/connect-memcached/-/connect-memcached-0.0.6.tgz","integrity":"sha512-4HqFUQ2yxtNpzM2WNzdOOB6kofIxJ0wFA1SOr+3kwHIRyDODCw+FnkkPFhE0cKz1cQlwIrxn7eQcnSw5xwNwEw==","signatures":[{"sig":"MEUCIQD6tTBVQ5cjUraH6kNhAl7gBHtwUnd46nn9v/x/l0vX3wIgV3fzNdwJDGw7vlhjVsJfHaEwQL+j3WZIpuoUSzn+gnk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"engines":{"node":">=0.4.7"},"repository":{"url":"https://github.com/tmont/connect-memcached","type":"git"},"description":"Memcached session store for Connect","directories":{"lib":"./lib"},"dependencies":{"memcached":"0.2.2"}},"0.1.0":{"name":"connect-memcached","version":"0.1.0","keywords":["memcached","connection","session","store","cache"],"author":{"name":"Michał Thoma","email":"me@balor.pl"},"license":"MIT","_id":"connect-memcached@0.1.0","maintainers":[{"name":"balor","email":"michal@balor.pl"}],"homepage":"https://github.com/balor/connect-memcached","bugs":{"url":"https://github.com/balor/connect-memcached/issues"},"dist":{"shasum":"810a676749409fd5f3c6cc56540047c6a700bdc9","tarball":"https://registry.npmjs.org/connect-memcached/-/connect-memcached-0.1.0.tgz","integrity":"sha512-0uKSZiyEwx7NEm3FLi8EyvRNymYsmyd5LZ3hkm5lH01O7lv2222RwPerTahHKUXbMuOwfY/V0mHysK3ik3W3bg==","signatures":[{"sig":"MEUCIQDD83MGlw9CHBQrYN76FvWAsuAmmtoo4dN9u3SlgPN21wIgRUghpj6lFucHdsx0/4nUaxJMYVGi+hkuPWSGXVjFKwQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":"./","engines":{"node":">=0.4.7"},"_npmUser":{"name":"balor","email":"me@balor.pl"},"repository":{"url":"https://github.com/balor/connect-memcached","type":"git"},"_npmVersion":"1.4.3","description":"Memcached session store for Connect","directories":{"lib":"./lib"},"dependencies":{"memcached":"0.2.x"}},"0.2.0":{"name":"connect-memcached","version":"0.2.0","keywords":["memcached","connection","session","store","cache"],"author":{"name":"Michał Thoma","email":"me@balor.pl"},"license":"MIT","_id":"connect-memcached@0.2.0","maintainers":[{"name":"balor","email":"michal@balor.pl"}],"homepage":"https://github.com/balor/connect-memcached#readme","bugs":{"url":"https://github.com/balor/connect-memcached/issues"},"dist":{"shasum":"64907180324e117d9e8f299c994c0cb03d5020cf","tarball":"https://registry.npmjs.org/connect-memcached/-/connect-memcached-0.2.0.tgz","integrity":"sha512-1GtceZF08SsEHMSLb+3DS5gXDZW3cJQ6EeUhPTErM8ZEe77U7YIPsovKhIJt3t+gzCRqWkfza8pqNlVNj7LrXw==","signatures":[{"sig":"MEYCIQCyg+uzKbiDzPNzITPqlwQ5YAQuZsyaZ+5bTe/wnVqZwgIhAPcGo+Wi/G7BNYm/bv2XJDUXPG8b49jzi8urnmwM4fo4","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","_shasum":"64907180324e117d9e8f299c994c0cb03d5020cf","engines":{"node":">=0.4.7"},"gitHead":"33f19c21714089c049ba2cdcf2b5094ca51fbb4d","scripts":{},"_npmUser":{"name":"balor","email":"me@balor.pl"},"repository":{"url":"git+https://github.com/balor/connect-memcached.git","type":"git"},"_npmVersion":"3.3.12","description":"Memcached session store for Connect","directories":{"lib":"./lib"},"_nodeVersion":"5.3.0","dependencies":{"memcached":"2.2.x"},"_npmOperationalInternal":{"tmp":"tmp/connect-memcached-0.2.0.tgz_1458210514224_0.3622047898825258","host":"packages-12-west.internal.npmjs.com"}},"1.0.0":{"name":"connect-memcached","version":"1.0.0","keywords":["memcached","connection","session","store","cache"],"author":{"name":"Michał Thoma","email":"me@balor.pl"},"license":"MIT","_id":"connect-memcached@1.0.0","maintainers":[{"name":"balor","email":"michal@balor.pl"}],"homepage":"https://github.com/balor/connect-memcached#readme","bugs":{"url":"https://github.com/balor/connect-memcached/issues"},"dist":{"shasum":"7be2dfb08ea0e746d87ba6b51d01c1603b255ed3","tarball":"https://registry.npmjs.org/connect-memcached/-/connect-memcached-1.0.0.tgz","fileCount":8,"integrity":"sha512-7LwvoslynK+vGnPGcjmk1IkETI8RzdZGDBLJDrxzNUNuvn3EcGAym+aVii2FsZUOjmN8VV3xiah1RjjDh3RO5g==","signatures":[{"sig":"MEUCIAMvd5ElS0Oo83ZhUbvP1qT32zkbmtsE1NY3nOTR21JtAiEA1SYH4Tp84pHxxPePAjLv9qQXiOdbzuxOUR1GrJ4rj8U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12444},"_from":".","_shasum":"7be2dfb08ea0e746d87ba6b51d01c1603b255ed3","engines":{"node":">= 0.10.0"},"gitHead":"5116ea30a6d15e7373de7d47cadc9fb5dd56cdf9","scripts":{},"_npmUser":{"name":"balor","email":"me@balor.pl"},"repository":{"url":"git+https://github.com/balor/connect-memcached.git","type":"git"},"_npmVersion":"3.5.2","description":"Memcached session store for Connect","directories":{"lib":"./lib"},"_nodeVersion":"8.10.0","dependencies":{"memcached":"2.2.x","buffer-from":"1.1.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/connect-memcached_1.0.0_1530442135228_0.2297521288101656","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"connect-memcached","version":"2.0.0","keywords":["memcached","connection","session","store","cache"],"author":{"name":"Michał Thoma","email":"me@balor.pl"},"license":"MIT","_id":"connect-memcached@2.0.0","maintainers":[{"name":"balor","email":"me@balor.pl"}],"homepage":"https://github.com/balor/connect-memcached#readme","bugs":{"url":"https://github.com/balor/connect-memcached/issues"},"dist":{"shasum":"60ab902e12f4d581e0624a3b0391e0a8d2801bf8","tarball":"https://registry.npmjs.org/connect-memcached/-/connect-memcached-2.0.0.tgz","fileCount":11,"integrity":"sha512-5u+zTOa/skRObVQeQfQMzS/gaPKDaB8IHoyVA/it9I2ARy7tYyANPGiNFUT1e0hm3Taryeiqqm4vuAWdaCipiA==","signatures":[{"sig":"MEQCIFPlv9jNdFuh5sh9Q9GoES6t26NOE08YxawB5cmF/au0AiA7b54gMSvgUc6gfpx28eJxn2Irk/OmJTWJDIMN6S0zbQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14583,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJih26EACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqXtRAAiq1i1RJeOinf7NrPFXLt48LgsUkVdMEajGg+tJEwfQOlz+N1\r\nly67Dhzi6nv4cfpFWWmFhGDesXELLCrw+9Utv05b3DrTB4EgBcynMKeRKeXC\r\nFFwZNfV/vmF7OLwNOl83R4Kit0qc/dVFP9lJnftIGb8KhuJb7WGDuPj/KVLL\r\nFUEdtwq6EqBB93SQOr87/FKck1YrXZ9jzGbnvwEZHDbCezGztV5eYnvuXaFQ\r\nhS38N6Hn7Sep4SVG6gtwjtk4D9QKTP0OwnAxoewd44NYg3PcqTQ1oMqYaR8d\r\n1xooXrHLyETdCehwv9r93FN4kQ30y7lFA1TBjuq2iBD0umYi2AE+am/xzwoP\r\ndGfjNePe3mA6LqkESPxUWLrhjdVaZSFgBvQz95uewMu92HM+wsmH2ksCuNSC\r\nMlsLZzZV94rtdZQH4T6rfvcBzJBSEVSsMaZvnE3yk+59SiqaHHf4ex/aUyT/\r\nmJFO5Yr5IdXOrgrM8msQssqSNRNvMElXBQ/Fu6MeWJmwJqzuHQuADmwguyvg\r\ni2x6kau/wnQ61BQjN3CA/66j452AAw9XChRcZyt1TrOODmoq+C47rIQOt4Ab\r\nVAwKheh4JwjelmIxK8HxxN1qFSBkef1mVPvLshh+PEe4QAgeLKdUnUThewy1\r\nEsOggOIfDjrSlNV80U29EJwCLv5915SPtBM=\r\n=f07V\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testEnvironment":"node","coveragePathIgnorePatterns":["/node_modules/"]},"engines":{"node":">= 0.10.0"},"gitHead":"7af70aa869160e0d8f0d7ff49b32330f6833bf41","scripts":{"test":"NODE_ENV=test jest --testTimeout=10000"},"_npmUser":{"name":"balor","email":"me@balor.pl"},"repository":{"url":"git+https://github.com/balor/connect-memcached.git","type":"git"},"_npmVersion":"8.9.0","description":"Memcached session store for Connect","directories":{"lib":"./lib"},"_nodeVersion":"18.2.0","dependencies":{"kruptein":"3.0.x","memcached":"2.2.x","buffer-from":"1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^27.5.1","express":"^4.17.3","supertest":"^6.2.2","express-session":"^1.17.2"},"_npmOperationalInternal":{"tmp":"tmp/connect-memcached_2.0.0_1653042820323_0.8967883423731782","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"connect-memcached","version":"3.0.0","description":"Memcached session store for Connect","keywords":["memcached","connection","session","store","cache"],"author":{"name":"Michał Thoma","email":"me@balor.pl"},"repository":{"type":"git","url":"git+https://github.com/balor/connect-memcached.git"},"dependencies":{"kruptein":"3.1.x","memcached":"2.2.x"},"devDependencies":{"express":"^4.17.3","express-session":"^1.17.2","jest":"^27.5.1","supertest":"^6.2.2"},"scripts":{"test":"NODE_ENV=test jest --testTimeout=10000"},"jest":{"testEnvironment":"node","coveragePathIgnorePatterns":["/node_modules/"]},"engines":{"node":">= 14.0.0"},"license":"MIT","directories":{"lib":"./lib"},"_id":"connect-memcached@3.0.0","gitHead":"d2011addd8b544e044bfecc27ea427f80c7930d9","bugs":{"url":"https://github.com/balor/connect-memcached/issues"},"homepage":"https://github.com/balor/connect-memcached#readme","_nodeVersion":"22.21.1","_npmVersion":"10.9.4","dist":{"integrity":"sha512-b00pLoCgGebVWXTNHhnj30Ll/NgpuTQmO806uxh7EyntwFPhmOr5fEiyX0ZxnnF14joT3Zg0sxrkuuHGpLqazA==","shasum":"adffb27f2e5b2f18e969abdfccf2b38e18152ac7","tarball":"https://registry.npmjs.org/connect-memcached/-/connect-memcached-3.0.0.tgz","fileCount":13,"unpackedSize":21614,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDpAUySjTW7Ztp86L7gwUex7vDg3KBSoPobcgD9ZAZpEAIge4ghIeDLF79WwmPAkQ5x3avq9GB0lucC/OiIl0C4wTo="}]},"_npmUser":{"name":"balor","email":"me@balor.pl"},"maintainers":[{"name":"balor","email":"me@balor.pl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/connect-memcached_3.0.0_1767048371365_0.7508902447738932"},"_hasShrinkwrap":false}},"time":{"created":"2011-07-01T11:14:56.204Z","modified":"2025-12-29T22:46:11.717Z","0.0.2":"2011-07-01T11:14:56.929Z","0.0.3":"2012-03-06T23:17:08.226Z","0.0.6":"2013-09-10T20:22:13.930Z","0.1.0":"2014-05-24T08:19:33.215Z","0.2.0":"2016-03-17T10:28:36.434Z","1.0.0":"2018-07-01T10:48:55.278Z","2.0.0":"2022-05-20T10:33:40.496Z","3.0.0":"2025-12-29T22:46:11.510Z"},"bugs":{"url":"https://github.com/balor/connect-memcached/issues"},"author":{"name":"Michał Thoma","email":"me@balor.pl"},"license":"MIT","homepage":"https://github.com/balor/connect-memcached#readme","keywords":["memcached","connection","session","store","cache"],"repository":{"type":"git","url":"git+https://github.com/balor/connect-memcached.git"},"description":"Memcached session store for Connect","maintainers":[{"name":"balor","email":"me@balor.pl"}],"readme":"# connect-memcached\n\nMemcached session store, using [node-memcached](http://github.com/3rd-Eden/node-memcached) for communication with cache server.\n\n## Installation\n\nnpm:\n\n```shell\nnpm install connect-memcached express-session\n```\n\nyarn:\n\n```shell\nyarn add connect-memcached express-session\n```\n\n## Example\n\n```javascript\nvar express = require(\"express\"),\n  session = require(\"express-session\"),\n  app = express(),\n  MemcachedStore = require(\"connect-memcached\")(session);\n\napp.use(\n  session({\n    secret: \"CatOnKeyboard\",\n    key: \"test\",\n    proxy: \"true\",\n    resave: false,\n    saveUninitialized: false,\n    store: new MemcachedStore({\n      hosts: [\"127.0.0.1:11211\"],\n      secret: \"Xj8$kLp2@Qa9#Zt5!\" // Optionally use transparent encryption for memcached session data (must meet complexity requirements)\n    })\n  })\n);\n\napp.get(\"/\", function(req, res) {\n  if (req.session.views) {\n    ++req.session.views;\n  } else {\n    req.session.views = 1;\n  }\n  res.send(\"Viewed <strong>\" + req.session.views + \"</strong> times.\");\n});\n\napp.listen(9341, function() {\n  console.log(\"Listening on %d\", this.address().port);\n});\n```\n\n## Options\n\n- `hosts` (Optional) Memcached servers locations, can be string, array or hash. Default is `127.0.0.1:11211`.\n- `prefix` (Optional) Prefix for each memcached key, in case you are sharing your memcached servers with something generating its own keys.\n- `ttl` (Optional) Default TTL parameter for the session data (in seconds).\n- `secret` (Optional) Secret used to encrypt/decrypt session contents. Setting it enables data encryption, which is handled by [kruptein](https://github.com/jas-/kruptein) module.\n- `algorithm` (Optional) Cipher algorithm from `crypto.getCiphers()`. Default is `aes-256-gcm`.\n- `hashing` (Optional) Hash algorithm from `crypto.getHashes()`. Default is `sha512`.\n- ... Rest of given options will be passed directly to the [node-memcached](http://github.com/3rd-Eden/node-memcached) and [kruptein](https://github.com/jas-/kruptein) constructors, see their appropriate docs for extra configurability.\n\n## Upgrading to v3.x.x\n\nv3.0.0 introduces two breaking changes:\n\n### 1. Node.js version requirement\n\n**Breaking change:** v3.0.0 requires Node.js >= 14.0.0. Support for Node.js versions 4-12 has been dropped.\n\nIf you're running an older Node.js version, please upgrade to Node.js 14 or later before upgrading to v3.x.x.\n\n### 2. Stronger secret requirements for encryption\n\n**Breaking change:** The `kruptein` dependency has been updated to enforce stricter password complexity requirements for the `secret` option. If you use encryption (set the `secret` option), your secret must now meet these requirements:\n\n- Minimum length: 8 characters\n- Minimum 2 uppercase letters\n- Minimum 2 lowercase letters\n- Minimum 2 numbers\n- Minimum 2 special characters (`!@#$%^&*()_+-=[]{};':\"\\\\|,.<>/?`)\n\n**IMPORTANT:** Check if your current secret meets these requirements:\n\n- **If your secret already meets the requirements:** You can upgrade safely with no additional action needed.\n- **If your secret does NOT meet the requirements:** You MUST flush all encrypted session data from memcached before upgrading AND update your secret to meet the new requirements. All existing encrypted session data will become inaccessible with the new secret.\n\nSessions without encryption (no `secret` option) are not affected.\n\n## Upgrading to v2.x.x\n\nWhen upgrading from pre v2 and using data encryption please flush all the session entries from memcached before rolling the update.\n\nSessions without data encryption are not affected.\n\n## Upgrading from v0.x.x -> v1.x.x\n\nIf You're upgrading from the pre v1.0.0 version of this library and use encryption for session data be sure to **remove all session entries created with previous version**. \n\nUpgrading library without taking appropriate action will result in `SyntaxError` exceptions during JSON parsing of decoded entries. \n\nSessions without encryption are not affected.\n\n## Contributors\n\nBig thanks for the contributors! See the actual list [here](https://github.com/balor/connect-memcached/graphs/contributors)!\n\n## License\n\n(The MIT License)\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","readmeFilename":"Readme.md","users":{"snowdream":true}}