{"_id":"@24hr/rawb-content-cache","_rev":"32-360b1eda6f4594a033a2995b99140be6","name":"@24hr/rawb-content-cache","dist-tags":{"latest":"0.9.2"},"versions":{"0.7.0":{"name":"@24hr/rawb-content-cache","version":"0.7.0","keywords":["rawb","content"],"author":{"name":"Camilo Tapia","email":"camilo.tapia@gmail.com"},"license":"MIT","_id":"@24hr/rawb-content-cache@0.7.0","maintainers":[{"name":"victorglimskog","email":"victor.glimskog@gmail.com"},{"name":"schmolie","email":"tinahakansson@gmail.com"},{"name":"alexander-nilsson","email":"alexander.nilsson83@gmail.com"},{"name":"camilo.tapia","email":"camilo.tapia@gmail.com"}],"homepage":"https://github.com/24hr-malmo/rawb-content-cache#readme","bugs":{"url":"https://github.com/24hr-malmo/rawb-content-cache/issues"},"dist":{"shasum":"73df064d99e3f8d2c65c6bcfb75a509f6a7ee984","tarball":"https://registry.npmjs.org/@24hr/rawb-content-cache/-/rawb-content-cache-0.7.0.tgz","fileCount":7,"integrity":"sha512-zveqvmovzDlOvjEE7CTXDv9s/4rYexyIpvGwUzvnhSVo+Xyy204q8EleaSlJ060MIuvX3sCXwLMtuRsr0n0VXg==","signatures":[{"sig":"MEUCIQCWNVoXo0Ul6g40yrxgCfUV4Pf6f3kS8WaMCreNRKbIuAIgFcJhjjG8pTRnZN28D7qdU46uB7vRzCe0/CoUxSK/gIk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10980,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdc9njCRA9TVsSAnZWagAATZoP/i0XDGlJj3STixRk8fJA\nD1v9TcmR7VBgqUzs1NDuYowTJdQLnRtNsz6LkVifdyzX5SVMUnlohB6bCAh8\nhG+sy5TDvfUfn2BxYccxk+ltqOGYdu1nnHUb0TUatkrVbtATe1fCJH7RgPfD\nW0S/KGKOJ38ryHVWr164q0tawBitdnIPgpuDSFzG6ytTI2BjDnQzZrSWbG0V\n+Xu7Mz4zkYoxnbIOFCzIebGEyyP0VajkiCO+WrH0bO2v44zigR1IyLEbi1W/\nyxewgNnLSAc5mnjDDD9GHQTKxJcGgo7gxxGm1ZZ5WfpIW10Rbk4Txt9gRnya\n6HJObPco9Adz2220UYJXom/0UuKAUqzixOxRAblrZj+u7mtFNwUdyrPdVLlP\n4dWjTGKggbqhRqaiQ76N6yH/qcg08iA076Kn5o8At27xvtvHPgZNwdrK3xQm\nmC3mbCDU5YVKXMFa4JqrTwJQiBjROMBtx1UpA4qHgBBlce2wRJbdwydv+Nlm\n/sgbTbbO/J/BbB2CbP+9ckep1w0P+XWstoeirFQNzGuF27659+I6DFkY18Cm\nuwZtRgarIWtaZbS/g7vZsjsQPBSmO7Z20A98j1hGsQiF8SImWyb6wTyhGg9t\nw4Xwos2ThSEMMhx0v+mG+hnlVdvNbjBg0rivb+p/JqFHroTLL5CWUeFRugj+\nT7NP\r\n=f/0i\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./src/index.js","gitHead":"4f7b3368d9444a7d0d3aa1f753f7a10577f67235","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"camilo.tapia","email":"camilo.tapia@gmail.com"},"repository":{"url":"git+https://github.com/24hr-malmo/rawb-content-cache.git","type":"git"},"_npmVersion":"6.4.1","description":"A utlity to keep cached data from a rawb-content service and keep the data up to date by redis events","directories":{},"_nodeVersion":"10.15.3","dependencies":{"redis":"2.8.0","lru-cache":"5.1.1","node-fetch":"2.6.0"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/rawb-content-cache_0.7.0_1567873506438_0.1798134511404963","host":"s3://npm-registry-packages"}},"0.8.0":{"name":"@24hr/rawb-content-cache","version":"0.8.0","keywords":["rawb","content"],"author":{"name":"Camilo Tapia","email":"camilo.tapia@gmail.com"},"license":"MIT","_id":"@24hr/rawb-content-cache@0.8.0","maintainers":[{"name":"alexander-nilsson","email":"alexander.nilsson83@gmail.com"},{"name":"camilo.tapia","email":"camilo.tapia@gmail.com"},{"name":"schmolie","email":"tinahakansson@gmail.com"},{"name":"victorglimskog","email":"victor.glimskog@gmail.com"}],"homepage":"https://github.com/24hr-malmo/rawb-content-cache#readme","bugs":{"url":"https://github.com/24hr-malmo/rawb-content-cache/issues"},"dist":{"shasum":"86cff504d0469e226e8c72c5e576d864aa6222c8","tarball":"https://registry.npmjs.org/@24hr/rawb-content-cache/-/rawb-content-cache-0.8.0.tgz","fileCount":7,"integrity":"sha512-X41W0OURgLtQ7puANdGnI8l1PuUqYH5I7hXB2n3uXkmemo6YlfUsxwRs/dNgcnIbEDT5dJBgsYYoIZ47OQObfw==","signatures":[{"sig":"MEQCIEiW/FSWJe67Nvcg83rJTAgIsYQ702MlsEOV2UdkKYliAiBvcU3PguUIngd4VaEaAzY4geQcRex7vL0YjDFCanib4w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19330,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddMecCRA9TVsSAnZWagAApYQQAIgxry5RXFrgSif5+7nl\nuZNIjZ0DTcFdK9YBQ93V2TmIbViSiEbeCXBKU7cVnKR1byIjIRzyfFtEBa34\n9RFuNswWwGK/Q2yX7vqD0oMH90G2N9zNS3NpuFOnW11RN3BuhAcwp8QLBo7a\ndxgntSvKZE8NQtMKfGyqRi0ittJzjqlzy50E+7iTGuWKBoqeFq0+rM7NwJR2\nj69sRyj6ipL/uXNEiecGtZr4RGK6WEtwbzQz3fcZO687OdwW9jocib2MrUc3\niij9PIUVo2O2LsFWrEizfcrzk+5jPIRIp+dOAExOkFuEfJXMFh98amku89uX\nPkFsHnMw6Ne6b2BMEzSOGdDfCDAFUQdvY1AfVdQiWRPfT2E0uvOpcNG7gorb\nsh+VHOcitjZ46EI7ZOMfMHJEVFL4z8lNwOe2u6z9//mBMdz/qGB8o6UPIMeg\nIzmc9SA8ZIciuwnyNz0UTy/39Vuwizqn6oaYDOVnxYLukJyfyocKLdBFfu2x\nVYfIPLA+d0InrQ0Qc7wyb6T+qWW2W0HqDFX8dTPjz3/EfqToskXURAAWqrZ7\nb7rWzv37Q7d6HBn3Nq/XdEVsJ42gZNx4C282hcXJlkuqpoKEO0ME6Hx85R2C\nfHS+VjgSUMd+r+QSRWXiT6N4CWh64np2KZzda9XrU4dYbnJcpmujhWk/LEqG\nmbZg\r\n=Zekh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./src/index.js","gitHead":"9576c77cfd84a2d50d7e2e8f128bd93b53e67d91","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"camilo.tapia","email":"camilo.tapia@gmail.com"},"repository":{"url":"git+https://github.com/24hr-malmo/rawb-content-cache.git","type":"git"},"_npmVersion":"6.4.1","description":"A utlity to keep cached data from a rawb-content service and keep the data up to date by redis events","directories":{},"_nodeVersion":"10.15.3","dependencies":{"redis":"2.8.0","lru-cache":"5.1.1","node-fetch":"2.6.0"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/rawb-content-cache_0.8.0_1567934363537_0.9630958509448553","host":"s3://npm-registry-packages"}},"0.8.1":{"name":"@24hr/rawb-content-cache","version":"0.8.1","keywords":["rawb","content"],"author":{"name":"Camilo Tapia","email":"camilo.tapia@gmail.com"},"license":"MIT","_id":"@24hr/rawb-content-cache@0.8.1","maintainers":[{"name":"alexander-nilsson","email":"alexander.nilsson83@gmail.com"},{"name":"camilo.tapia","email":"camilo.tapia@gmail.com"},{"name":"schmolie","email":"tinahakansson@gmail.com"},{"name":"victorglimskog","email":"victor.glimskog@gmail.com"}],"homepage":"https://github.com/24hr-malmo/rawb-content-cache#readme","bugs":{"url":"https://github.com/24hr-malmo/rawb-content-cache/issues"},"dist":{"shasum":"b14827017d233a9ad932ad64182ddd0e84b07f39","tarball":"https://registry.npmjs.org/@24hr/rawb-content-cache/-/rawb-content-cache-0.8.1.tgz","fileCount":7,"integrity":"sha512-gL7NT+YQk4rCGRJ372ym0JfQWaG80lC9oJOs/H3prxg8PMCkkyIkAkkdhVx1ZvaBOef3Q5tX+H/woT6FT4KrwA==","signatures":[{"sig":"MEUCIQD+cSpQKsMCR2fzw7/uaGOpAU17VAB0aaQFMStoxipxnwIgEQl3RkfabSKMDLclBcJjjJIE8jVAWCLaULyX7ZzYxZQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19319,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddMk/CRA9TVsSAnZWagAAbhkP/25Zf1QGToaCQxQlwDeb\n0KnmpP94CmBPPPHONMc7NfeAhNe++DGRjFoVMsOhlXiM/EEqovGhEyAHkO//\nKakZiGKypgbZZEs3iQ+4nS2o+xVcF0qJtV+aS4VXCFqZlMWDzvOYKzQSiiO1\n7jSNPsHJz5iPbA+StBFPne4F3qWptaJHqZcMQJs66076RYWmZFkUlELnB2KB\nS/76m3zs05gGxVqnigoyZOqVIr3N4maDeukGvOIz3ATB7qLx8iOqFJ8od25d\nF9cY7vhx8+6n36bimxVcXXzE2TXC/hA4/3y1wSig8v6tFuMJ5d6LNrOcHayV\nSRK6fRzOdUkeB5LlpaqL/1UvfRJL2pEBifPeaenzmz/QyiJt6gZaEJ1tRGh3\nskw7IUkLctBoMY3F+/tzLlfkwOOkPW5mZHF3xUUdhrETwyJVUBJm8WyUBNNf\nb0am3pCe0mwu7HXM2grzKqa6ZjLdlEFLsjNULg7ghJq6uFNSaqQ5CVTi9ygp\nGwTtlzS7AVARTYPc32Z8G8GEkiXGTwG3WOnhnsc8ELWlmhf/kkKylBsbjV77\nIvvO1dL5BWaJRO5ZUThlQpeQZ3O20ZSk2+vndhFfRB6arQsHH/tSTt37Sj41\n7l3LL9KKYPzvXr985nLrY7BOMwPOjZDmbW79ww3Y3tTIto6ICdN0mZZ2r6Dj\nosn+\r\n=7Whm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./src/index.js","gitHead":"8d0b0f9fc84cde034ccf4aa2a1c0b2ddceb5fee3","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"camilo.tapia","email":"camilo.tapia@gmail.com"},"repository":{"url":"git+https://github.com/24hr-malmo/rawb-content-cache.git","type":"git"},"_npmVersion":"6.4.1","description":"A utlity to keep cached data from a rawb-content service and keep the data up to date by redis events","directories":{},"_nodeVersion":"10.15.3","dependencies":{"redis":"2.8.0","lru-cache":"5.1.1","node-fetch":"2.6.0"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/rawb-content-cache_0.8.1_1567934783368_0.7169197111184018","host":"s3://npm-registry-packages"}},"0.8.2":{"name":"@24hr/rawb-content-cache","version":"0.8.2","keywords":["rawb","content"],"author":{"name":"Camilo Tapia","email":"camilo.tapia@gmail.com"},"license":"MIT","_id":"@24hr/rawb-content-cache@0.8.2","maintainers":[{"name":"alexander-nilsson","email":"alexander.nilsson83@gmail.com"},{"name":"camilo.tapia","email":"camilo.tapia@gmail.com"},{"name":"schmolie","email":"tinahakansson@gmail.com"},{"name":"victorglimskog","email":"victor.glimskog@gmail.com"}],"homepage":"https://github.com/24hr-malmo/rawb-content-cache#readme","bugs":{"url":"https://github.com/24hr-malmo/rawb-content-cache/issues"},"dist":{"shasum":"22acfd36d76766a51ce8959ed33de17de8b55866","tarball":"https://registry.npmjs.org/@24hr/rawb-content-cache/-/rawb-content-cache-0.8.2.tgz","fileCount":7,"integrity":"sha512-VP69o+3XdUy6X+JhVJdK2XSovLcq8NB+/kyOsTYDH61NKy+8vsbsIzZHdV6uWKTGGbDBSSCIpodjRXh92iRATA==","signatures":[{"sig":"MEUCIDR8BVwvFPIpYhqtK4IMNtrIsg54PDnJwelFcWT3GZr+AiEAh/KAci3pZ1mq5JOC6AbQWCq2l65QOA7kPB3/6R0FsW8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19363,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddMmaCRA9TVsSAnZWagAALJQP/3kXOZ10a7R59CBT4k32\n/dl+eI8KOgUJgors/vYDO9jmGu0L+wGupAz6767vWbpDxU+tq3Q+3qKYFqee\naG2o/VIasmn94GxWigdMh+WBfAIi8NZ1gDNtB/3EGCm2H4GXBan3n0Xq2szE\ncjcxXEi060BS00TcON/jFFIDTTo3JVLDv3WLm5netuenfBDlXdOERBlRjd8U\nT00WLTagsO94e4cLHFdzpSnwu3rPum6mFbRM1xqVshG3gHHCa6TSjEAE17rP\n47vG6QnrTCWEhV1QTVXk+ZzdretuQ4FHM3dh9C+WC/KRFoDgNTma3ZDWDDUn\nQDDNGgl2pL+vcjahUiD3AL02t9UERJzg10nbeRoUsezdaiVnFu7g/MZEl3jB\ngtuccfPkc/XSvTe6D3grE+G/GAuX/MUbLiZyVV0UzcArfiPRGdoKEb3ECSLD\nIas2k/1Dzb/fUgwLRLQSe1NWS47NAV4DlWAnNLyAr8sQrhPFKCGmaJKIRrFj\nw5xoZ6BBEmI/p8uzP7Nt2jI6LkFuazU9nDpG25O2UIaQpDiR7Etm9pRElEyJ\nwhYrmgd3dMMQavu3C09Rd0POciyEubzkb6SIjUzFFJkMvmKtL5aljBsP2hVg\nHW9liAW+zV+c+zOfwUEc6orvtzg+5EXmfnPpcgOf+ovKeCiIwZMowUNoUwXL\nPhz3\r\n=A7n9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./src/index.js","gitHead":"b2a8a0ffea97128c9b8362903afcc3b719516782","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"camilo.tapia","email":"camilo.tapia@gmail.com"},"repository":{"url":"git+https://github.com/24hr-malmo/rawb-content-cache.git","type":"git"},"_npmVersion":"6.4.1","description":"A utlity to keep cached data from a rawb-content service and keep the data up to date by redis events","directories":{},"_nodeVersion":"10.15.3","dependencies":{"redis":"2.8.0","lru-cache":"5.1.1","node-fetch":"2.6.0"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/rawb-content-cache_0.8.2_1567934874011_0.2626706638313989","host":"s3://npm-registry-packages"}},"0.9.0":{"name":"@24hr/rawb-content-cache","version":"0.9.0","keywords":["rawb","content"],"author":{"name":"Camilo Tapia","email":"camilo.tapia@gmail.com"},"license":"MIT","_id":"@24hr/rawb-content-cache@0.9.0","maintainers":[{"name":"alexander-nilsson","email":"alexander.nilsson83@gmail.com"},{"name":"camilo.tapia","email":"camilo.tapia@gmail.com"},{"name":"schmolie","email":"tinahakansson@gmail.com"},{"name":"victorglimskog","email":"victor.glimskog@gmail.com"}],"homepage":"https://github.com/24hr-malmo/rawb-content-cache#readme","bugs":{"url":"https://github.com/24hr-malmo/rawb-content-cache/issues"},"dist":{"shasum":"462a094196285eab9d839061929eba01aa03139d","tarball":"https://registry.npmjs.org/@24hr/rawb-content-cache/-/rawb-content-cache-0.9.0.tgz","fileCount":7,"integrity":"sha512-HUOtMayOtYLEKM265U7K4IDaGOxnurRpvXcGA1N0hYU5siaHLZ0LhGduOaJIDdmiuowleT/oFDDZHTghl87rmg==","signatures":[{"sig":"MEYCIQD3fnkmvgdJCFhuizawUPQHQCH2IT/Y723KjpTxzqiifgIhAPnYy4Oz2m8e8QSQX1s57ejFPyFNbN5fQYyVZW1SsQc+","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20769,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdhd48CRA9TVsSAnZWagAAVAgP/1luP+Aar/ieEikxDFXy\nPcwElrYQxg8hh5FLtwXrnXHIicOdWVhyR/BLzNKa2DbOjG2QyuUt97bruVIg\n4QR8LhFPetzeUsZek8qmQT4iWsGZdpT/oEVA/p1pSqiMNnXl2zmnII6wb40V\nfpXtAVI5m7q19gCd8oUe+F3f26w6ryuZ76ai2dpgtyeAiJnbqQdVbZvdmj5o\nOG7czhAmuL3fuq3uThaPvQw+RSIY+/X4EgD7lEshcTsIBYpCQI7wZt1d+XOM\nVmZWSxDy3uifradZ+yYhkgWpW9mBF1xP28ztSx3RlnXWCI5g1gle7a9T8H9Y\n3LKdYth/l/W02yrnx5kJ8j9f3BxfAd7EWuM4MLtJLhsWkEHVbihY3BJH0dEk\nODuvnYURC3qSl9ignrZMQIcBNG33PIUCGG3iMKAyzBzl9nlW78bAodfwJLKF\nenwXFzCId+fXBpOMs7BMQRc+ZcnpdBrOOY0UESO9zCoZfB9mAfA+KrS9EWBS\n2XxpV3AZ31zv8q5dtaWUIdJ6VfX1YrpwTOBnWDRmLCYpFmt3N17YGX0DMNeA\nU+na6H8uT6Fx97S1VkkrOQLzPUyRLx0IG33AA7rTY3cJGfPwuUNjX9nLQHxG\nOiB+3XHzLHNO/Q0ldFaxfgIq0gxrQMe50lYAz7N++xLPeqsf1+TO1ubzpAAL\nJqF0\r\n=xEYm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./src/index.js","gitHead":"c056e8ccf2ad8f36151e21f67aacf976d1189a19","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"camilo.tapia","email":"camilo.tapia@gmail.com"},"repository":{"url":"git+https://github.com/24hr-malmo/rawb-content-cache.git","type":"git"},"_npmVersion":"6.4.1","description":"A utlity to keep cached data from a rawb-content service and keep the data up to date by redis events","directories":{},"_nodeVersion":"10.15.3","dependencies":{"redis":"2.8.0","lru-cache":"5.1.1","node-fetch":"2.6.0","graphql-request":"1.8.2"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/rawb-content-cache_0.9.0_1569054267982_0.36411464410559424","host":"s3://npm-registry-packages"}},"0.9.1":{"name":"@24hr/rawb-content-cache","version":"0.9.1","keywords":["rawb","content"],"author":{"name":"Camilo Tapia","email":"camilo.tapia@gmail.com"},"license":"MIT","_id":"@24hr/rawb-content-cache@0.9.1","maintainers":[{"name":"alexander-nilsson","email":"alexander.nilsson83@gmail.com"},{"name":"camilo.tapia","email":"camilo.tapia@gmail.com"},{"name":"schmolie","email":"tinahakansson@gmail.com"},{"name":"victorglimskog","email":"victor.glimskog@gmail.com"}],"homepage":"https://github.com/24hr-malmo/rawb-content-cache#readme","bugs":{"url":"https://github.com/24hr-malmo/rawb-content-cache/issues"},"dist":{"shasum":"af1e0809abb6a0bd01a824636fe8a10f6c419d01","tarball":"https://registry.npmjs.org/@24hr/rawb-content-cache/-/rawb-content-cache-0.9.1.tgz","fileCount":7,"integrity":"sha512-+iAoIBO6oESTA9u6SBunMf2tiZrRP7dpXyXcD8PNZXrUG2o02FF8NxqruPosXN1Qaj9EhDuu5b4P5XnltgVdpQ==","signatures":[{"sig":"MEUCIFJHJNygQPOBXI6St971bFxCciOvM2hi/iFRYcyCcQXEAiEA4cd8EiJC2E5nPof5ufwinx6MY+lLkwRAuGwKQCOwmUs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23364,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdsa38CRA9TVsSAnZWagAAf0kP/13cWCbAee/VelyeVUfM\n3X2Su2SEhHD5cKTnWbXHLfyaTQEDvNwiIt1ZgjTfQOq+gM/0pUANu/Idzhb5\n+2aVYzOIygrxuRCxYFTjSGzWTXHfQNnkYflV2lxfUUmnNg/6HHuJ/IJ9miqm\nxype2Lz5sY1lsmbbIisGBFbB7R8l/HzvGif+h2/Zk4nuLCqoVulyQpwwRwLw\nH0QJhNqytfslgT76HeuW6XkrCqDaBKuPHkPVc0OShb8Gt47HjZwCkL237UzQ\neh1zEeMrX6XGa1N2O0wbtlYQUeO5YG7GK89IRdyzlTa0MDpWYe8o4Sy7H7v/\nl0H6SjqsUrxk+Z1Wm+PvUJysfRZay0f9U5uk+nj1JRQ6PYI6kw53HPoONG9w\n4xEcuG0q0UnS8C8T8heDM9Kf5q0T8DabcTfMuNf4MKjNlxU4GGAwj8fzf2B1\nLMRasM2GucyU/MqH/WcCrL8Yv4oxVzRvYOo1dKqZ1mDloo4ymyQks8JwA4Yj\nb0FgfYlT7JRCQ9yk9pdEavoV4tYZmTraomt1Bd9ZmIbHaWO63E1N4VD8YmpV\ns9EoGo+ES/jMR/TFtOqulieoWJWaZcYsPVMAk1/tUsAdXFV1D0ermaZePkkj\newtxl/7nizxFstMCDal2HsRxNBPAUENhDOOzQUpNKoqoJJI2jRu11ZpCbK6V\nqCYH\r\n=CkwW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./src/index.js","gitHead":"c056e8ccf2ad8f36151e21f67aacf976d1189a19","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"camilo.tapia","email":"camilo.tapia@gmail.com"},"repository":{"url":"git+https://github.com/24hr-malmo/rawb-content-cache.git","type":"git"},"_npmVersion":"6.4.1","description":"A utlity to keep cached data from a rawb-content service and keep the data up to date by redis events","directories":{},"_nodeVersion":"10.15.3","dependencies":{"redis":"2.8.0","lru-cache":"5.1.1","node-fetch":"2.6.0","graphql-request":"1.8.2"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/rawb-content-cache_0.9.1_1571925500003_0.7923959437990669","host":"s3://npm-registry-packages"}},"0.9.2":{"name":"@24hr/rawb-content-cache","version":"0.9.2","keywords":["rawb","content"],"author":{"name":"Camilo Tapia","email":"camilo.tapia@gmail.com"},"license":"MIT","_id":"@24hr/rawb-content-cache@0.9.2","maintainers":[{"name":"alexander-nilsson","email":"alexander.nilsson83@gmail.com"},{"name":"camilo.tapia","email":"camilo.tapia@gmail.com"},{"name":"marcusthelin","email":"marcusthelin97@gmail.com"},{"name":"24hr-machine-user","email":"services@24hr.se"},{"name":"insidenpm","email":"peterlarssonsmail@gmail.com"},{"name":"bextex","email":"r.sarvegard@gmail.com"},{"name":"antonjohansson24hr","email":"anton.johansson@24hr.se"}],"homepage":"https://github.com/24hr-malmo/rawb-content-cache#readme","bugs":{"url":"https://github.com/24hr-malmo/rawb-content-cache/issues"},"dist":{"shasum":"6aae44433e97faf5f4fce09314ebfbbebe0c9663","tarball":"https://registry.npmjs.org/@24hr/rawb-content-cache/-/rawb-content-cache-0.9.2.tgz","fileCount":6,"integrity":"sha512-VoMCSM3cfQUopL+hPv2uqrbhbwxs5vDL4qC6CHLgEcmd4ojJ+dq5oMTWbRheMwpDBbT/PtgonBL670qX7nZzvg==","signatures":[{"sig":"MEQCICNeyvI+WHyWjzxPO1sM7M5uf493aljDa4dgxiwyU/JIAiAvL1yUbPvCSqT3TOE8vSsmgi9h8c94hxfRifbjnjtUxQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10614,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhERDNCRA9TVsSAnZWagAAxwIP/A8lHyt8fWhkJlhm9C/9\nh+fXL68Z+XvTovrXgkpro6gq2dONFmTBKCfRq+sHRrxPIt/Pak15CXK9E5Wv\nqGChXl+haUNqheA43ht/I14oCEn5EujwGZv5vIXUwdp6yTwL33PwWjoNLtrk\nIXF8Xq8FfnvDDIWkjw0r3Kuf2EG1ajNEA9dOHvMrkpHsxNijCbTiJHQwaMuH\nCq76ECkC1hKXZ5EkFFnsQ8c07XlPn0C99iQ1LdlQcVL1VfUZa7dy9jxCiR8E\nE+woGkJ3j6lRg7YKYhzLhGf2+E+xWF/vz5tD/Iy0pVO3IrszneTBxiZxR2Ua\nzSxUtKsCqd2ByMrV1kCeTOGUWc2jWHfqQGAbdT/UjQAXzQpuo3plZ0F59wwu\nkoeTf1X9FXkJHTsYqBViy3QjL4GcVtzNXklAYoNfA7ZfAuhZ80Wm8IX26uW+\ni9m8PNYSwSH7x3OUdrxFkU27YCptv420iEWt/8vTDlQBgHq+wE+v0lpeJopT\nncgUQlo9aobhoV604aYdwWqjYz9SYdZAcJD/A1nwl08GfHyZptS2GysRHEnX\nkEKAwuN3f10Ve+6wDGijsSPrBGfMlvr8eAYGLkAPg4TYCZK2q8DniyXYZ9RK\nj2URUXu5Z5Olm5Sh2oEqZVNHd+nssSVzv/9OrNv2kcc+bTPdc0RR+UNrndR3\nyonx\r\n=q7D2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./src/index.js","gitHead":"72a3e2b1b58e29967899be119cb349ce931aca2c","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"camilo.tapia","email":"camilo.tapia@gmail.com"},"repository":{"url":"git+https://github.com/24hr-malmo/rawb-content-cache.git","type":"git"},"_npmVersion":"7.15.1","description":"A utlity to keep cached data from a rawb-content service and keep the data up to date by redis events","directories":{},"_nodeVersion":"14.16.1","dependencies":{"redis":"3.1.2","lru-cache":"5.1.1","node-fetch":"2.6.0","graphql-request":"1.8.2"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/rawb-content-cache_0.9.2_1628508364990_0.25699274004921624","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-09-07T16:25:06.361Z","modified":"2026-08-18T09:12:38.380Z","0.7.0":"2019-09-07T16:25:06.569Z","0.8.0":"2019-09-08T09:19:23.684Z","0.8.1":"2019-09-08T09:26:23.528Z","0.8.2":"2019-09-08T09:27:54.106Z","0.9.0":"2019-09-21T08:24:28.081Z","0.9.1":"2019-10-24T13:58:20.142Z","0.9.2":"2021-08-09T11:26:05.103Z"},"bugs":{"url":"https://github.com/24hr-malmo/rawb-content-cache/issues"},"author":{"name":"Camilo Tapia","email":"camilo.tapia@gmail.com"},"license":"MIT","homepage":"https://github.com/24hr-malmo/rawb-content-cache#readme","keywords":["rawb","content"],"repository":{"url":"git+https://github.com/24hr-malmo/rawb-content-cache.git","type":"git"},"description":"A utlity to keep cached data from a rawb-content service and keep the data up to date by redis events","maintainers":[{"email":"alexander.nilsson83@gmail.com","name":"alexander-nilsson"},{"email":"camilo.tapia@gmail.com","name":"camilo.tapia"},{"email":"services@24hr.se","name":"24hr-machine-user"},{"email":"peterlarssonsmail@gmail.com","name":"insidenpm"},{"email":"me@fearswe.net","name":"thjo"},{"email":"r.sarvegard@gmail.com","name":"bextex"},{"email":"mikaela.ruden@24hr.se","name":"mikaela.ruden"},{"email":"simon.sporrong@24hr.se","name":"simon.sporrong"},{"email":"oscar.lillheden@twofour.se","name":"oscartwofour"},{"email":"christofer.haglund@outlook.com","name":"haglund"},{"email":"freddy.persson@twofour.se","name":"freddy.persson"}],"readme":"# RAWB Content Cache\n\nThis module keeps cached content from a fetch and subscrobes to events on a RAWB Content Service so it can refetch \nwhen athe correct content is updated at the source.\n\n## Example\n\n```javascript\nconst ContentClient = require('@24hr/rawb-content-cache');\n\nconst config = require('../config');\nconst logger = require('../logger');\n\nconst client = ContentClient({\n\n    // This can be an internal url as in docker-compose or an external url. \n    // It can also contain a port. The content service will by defautl expose internally the default redis port.\n    redisUrl: 'redis://url.to.your.service', \n\n    // The role of this server, since the content service can be run as both draft and live, we need to know which is targeted\n    role: config.ROLE,\n\n    // [optional] A logger, like winston. If none is provided, it will fallback to console.log and console.error\n    logger,\n\n    // [optional] An api token, that will be used as Bearer, if needed\n    apiToken: config.API_TOKEN,\n\n});\n\n// The first parameter is the siteId, which is needed as part of the request in the content service since it might provide data for several sites.\n// The second parameter is the resource key.\n// The third parameter is the url to fetch the resource. This is typically just the url of the content service with the key, \n// but in some cases it might go trough something else. \nconst response = await client.fetch('foo', '/mycoolresource', 'http://your.content.service.com/foo');\n\nconsole.log(response);\n```\n\nIn the example above, upon ffetching the data the first time, the content cache module will begin to listen to a redis event for that resource.\nWhen it gets a signal, it will re-fetch the resource with the resource url (third parameter).\n\n### fetch and subscribe\n\nThe example above showed the ```fetch``` function.\nThe client will also expose a function called ```subcribe``` that is a little more barebone:\n\n```javascript\nclient.subscribe('foo', '/mycoolresource', (data) => {\n    console.log('documentType', data.documentType);\n    console.log('hash', data.hash);\n    console.log('resource', data.resource);\n    console.log('externalId', data.externalId);\n});\n```\n\nThe ```subscribe``` function will not fetch anything for you, but will register the callback so you can fetch what you need.\nIt will not provide you with the content either, just the reference to it. \n\n## History\n\n- 0.8.3 [2019-09-08] : Updated docs again \n- 0.8.2 [2019-09-08] : Updated docs again \n- 0.8.1 [2019-09-08] : Updated docs\n- 0.8.0 [2019-09-08] : Refactored version with exposed fetch and subcribe after creating a client\n- 0.7.0 [2019-09-07] : First functional working\n\n","readmeFilename":"README.md"}