aderktech-chronark.com-/.contentlayer/generated/Project/projects__upstash-redis.mdx.json
2023-03-26 14:00:02 +02:00

23 lines
54 KiB
JSON

{
"published": true,
"title": "@upstash/redis",
"description": "A fully typed Redis client built for Upstash Redis and HTTP, perfect for serverless and edge runtimes.",
"date": "2022-03-14T00:00:00.000Z",
"url": "https://upstash.com/redis",
"repository": "upstash/upstash-redis",
"body": {
"raw": "\nUpstash is a cloud-based service provider that offers a Redis-compatible service. In addition to that, we have also created an npm package called `@upstash/redis`. This package provides a strongly typed Redis client that uses HTTP instead of TCP to communicate with the database, making it perfect for serverless and edge runtimes.\n\nRedis is a popular open-source, in-memory data structure store that can be used as a database, cache, and message broker. It is commonly used for web applications that require fast data access and manipulation. Redis clients communicate with Redis servers using the Redis protocol over TCP/IP.\n\nHowever, in some cases, TCP is not available. For example, edge functions run on cloud platforms, which often block TCP connections for various reasons. This is where `@upstash/redis` comes in handy. Instead of using TCP, it uses HTTP to communicate with the servers.\n\nThe package is designed to be easy to use and provides a simple API for Redis commands. It also includes support for Redis transactions and Lua scripting. It is written in TypeScript, which provides static typing and better code completion in modern editors.\n\nOne of the main benefits of using `@upstash/redis` is that it is strongly typed. This means that you get better type checking and error handling in your code. Additionally, the package is designed to be lightweight and optimized for performance. This makes it an excellent choice for applications that require fast data access and manipulation.\n\n```ts\nimport { Redis } from \"@upstash/redis\"\n\nconst redis = new Redis({\n url: <UPSTASH_REDIS_REST_URL>,\n token: <UPSTASH_REDIS_REST_TOKEN>,\n})\n\n// string\nawait redis.set('key', 'value');\nlet data = await redis.get('key');\nconsole.log(data)\n\nawait redis.set('key2', 'value2', {ex: 1});\n\n// sorted set\nawait redis.zadd('scores', { score: 1, member: 'team1' })\ndata = await redis.zrange('scores', 0, 100 )\nconsole.log(data)\n\n// list\nawait redis.lpush('elements', 'magnesium')\ndata = await redis.lrange('elements', 0, 100 )\nconsole.log(data)\n```",
"code": "var Component=(()=>{var ir=Object.create;var O=Object.defineProperty;var lr=Object.getOwnPropertyDescriptor;var dr=Object.getOwnPropertyNames;var ur=Object.getPrototypeOf,mr=Object.prototype.hasOwnProperty;var z=(d,r)=>()=>(r||d((r={exports:{}}).exports,r),r.exports),br=(d,r)=>{for(var _ in r)O(d,_,{get:r[_],enumerable:!0})},xe=(d,r,_,k)=>{if(r&&typeof r==\"object\"||typeof r==\"function\")for(let y of dr(r))!mr.call(d,y)&&y!==_&&O(d,y,{get:()=>r[y],enumerable:!(k=lr(r,y))||k.enumerable});return d};var hr=(d,r,_)=>(_=d!=null?ir(ur(d)):{},xe(r||!d||!d.__esModule?O(_,\"default\",{value:d,enumerable:!0}):_,d)),fr=d=>xe(O({},\"__esModule\",{value:!0}),d);var Ee=z((xr,ge)=>{ge.exports=React});var ve=z(q=>{\"use strict\";(function(){\"use strict\";var d=Ee(),r=Symbol.for(\"react.element\"),_=Symbol.for(\"react.portal\"),k=Symbol.for(\"react.fragment\"),y=Symbol.for(\"react.strict_mode\"),G=Symbol.for(\"react.profiler\"),K=Symbol.for(\"react.provider\"),X=Symbol.for(\"react.context\"),F=Symbol.for(\"react.forward_ref\"),D=Symbol.for(\"react.suspense\"),A=Symbol.for(\"react.suspense_list\"),R=Symbol.for(\"react.memo\"),B=Symbol.for(\"react.lazy\"),Re=Symbol.for(\"react.offscreen\"),J=Symbol.iterator,Te=\"@@iterator\";function Ce(e){if(e===null||typeof e!=\"object\")return null;var t=J&&e[J]||e[Te];return typeof t==\"function\"?t:null}var g=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(e){{for(var t=arguments.length,a=new Array(t>1?t-1:0),o=1;o<t;o++)a[o-1]=arguments[o];we(\"error\",e,a)}}function we(e,t,a){{var o=g.ReactDebugCurrentFrame,i=o.getStackAddendum();i!==\"\"&&(t+=\"%s\",a=a.concat([i]));var l=a.map(function(s){return String(s)});l.unshift(\"Warning: \"+t),Function.prototype.apply.call(console[e],console,l)}}var Pe=!1,Se=!1,Oe=!1,De=!1,Ae=!1,Z;Z=Symbol.for(\"react.module.reference\");function Be(e){return!!(typeof e==\"string\"||typeof e==\"function\"||e===k||e===G||Ae||e===y||e===D||e===A||De||e===Re||Pe||Se||Oe||typeof e==\"object\"&&e!==null&&(e.$$typeof===B||e.$$typeof===R||e.$$typeof===K||e.$$typeof===X||e.$$typeof===F||e.$$typeof===Z||e.getModuleId!==void 0))}function Ie(e,t,a){var o=e.displayName;if(o)return o;var i=t.displayName||t.name||\"\";return i!==\"\"?a+\"(\"+i+\")\":a}function Q(e){return e.displayName||\"Context\"}function p(e){if(e==null)return null;if(typeof e.tag==\"number\"&&b(\"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"),typeof e==\"function\")return e.displayName||e.name||null;if(typeof e==\"string\")return e;switch(e){case k:return\"Fragment\";case _:return\"Portal\";case G:return\"Profiler\";case y:return\"StrictMode\";case D:return\"Suspense\";case A:return\"SuspenseList\"}if(typeof e==\"object\")switch(e.$$typeof){case X:var t=e;return Q(t)+\".Consumer\";case K:var a=e;return Q(a._context)+\".Provider\";case F:return Ie(e,e.render,\"ForwardRef\");case R:var o=e.displayName||null;return o!==null?o:p(e.type)||\"Memo\";case B:{var i=e,l=i._payload,s=i._init;try{return p(s(l))}catch{return null}}}return null}var x=Object.assign,j=0,ee,re,ne,te,ae,oe,ce;function se(){}se.__reactDisabledLog=!0;function Ye(){{if(j===0){ee=console.log,re=console.info,ne=console.warn,te=console.error,ae=console.group,oe=console.groupCollapsed,ce=console.groupEnd;var e={configurable:!0,enumerable:!0,value:se,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}j++}}function $e(){{if(j--,j===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:x({},e,{value:ee}),info:x({},e,{value:re}),warn:x({},e,{value:ne}),error:x({},e,{value:te}),group:x({},e,{value:ae}),groupCollapsed:x({},e,{value:oe}),groupEnd:x({},e,{value:ce})})}j<0&&b(\"disabledDepth fell below zero. This is a bug in React. Please file an issue.\")}}var I=g.ReactCurrentDispatcher,Y;function T(e,t,a){{if(Y===void 0)try{throw Error()}catch(i){var o=i.stack.trim().match(/\\n( *(at )?)/);Y=o&&o[1]||\"\"}return`\n`+Y+e}}var $=!1,C;{var We=typeof WeakMap==\"function\"?WeakMap:Map;C=new We}function ie(e,t){if(!e||$)return\"\";{var a=C.get(e);if(a!==void 0)return a}var o;$=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var l;l=I.current,I.current=null,Ye();try{if(t){var s=function(){throw Error()};if(Object.defineProperty(s.prototype,\"props\",{set:function(){throw Error()}}),typeof Reflect==\"object\"&&Reflect.construct){try{Reflect.construct(s,[])}catch(N){o=N}Reflect.construct(e,[],s)}else{try{s.call()}catch(N){o=N}e.call(s.prototype)}}else{try{throw Error()}catch(N){o=N}e()}}catch(N){if(N&&o&&typeof N.stack==\"string\"){for(var c=N.stack.split(`\n`),h=o.stack.split(`\n`),u=c.length-1,m=h.length-1;u>=1&&m>=0&&c[u]!==h[m];)m--;for(;u>=1&&m>=0;u--,m--)if(c[u]!==h[m]){if(u!==1||m!==1)do if(u--,m--,m<0||c[u]!==h[m]){var f=`\n`+c[u].replace(\" at new \",\" at \");return e.displayName&&f.includes(\"<anonymous>\")&&(f=f.replace(\"<anonymous>\",e.displayName)),typeof e==\"function\"&&C.set(e,f),f}while(u>=1&&m>=0);break}}}finally{$=!1,I.current=l,$e(),Error.prepareStackTrace=i}var v=e?e.displayName||e.name:\"\",ke=v?T(v):\"\";return typeof e==\"function\"&&C.set(e,ke),ke}function Me(e,t,a){return ie(e,!1)}function Ve(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function w(e,t,a){if(e==null)return\"\";if(typeof e==\"function\")return ie(e,Ve(e));if(typeof e==\"string\")return T(e);switch(e){case D:return T(\"Suspense\");case A:return T(\"SuspenseList\")}if(typeof e==\"object\")switch(e.$$typeof){case F:return Me(e.render);case R:return w(e.type,t,a);case B:{var o=e,i=o._payload,l=o._init;try{return w(l(i),t,a)}catch{}}}return\"\"}var P=Object.prototype.hasOwnProperty,le={},de=g.ReactDebugCurrentFrame;function S(e){if(e){var t=e._owner,a=w(e.type,e._source,t?t.type:null);de.setExtraStackFrame(a)}else de.setExtraStackFrame(null)}function Le(e,t,a,o,i){{var l=Function.call.bind(P);for(var s in e)if(l(e,s)){var c=void 0;try{if(typeof e[s]!=\"function\"){var h=Error((o||\"React class\")+\": \"+a+\" type `\"+s+\"` is invalid; it must be a function, usually from the `prop-types` package, but received `\"+typeof e[s]+\"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.\");throw h.name=\"Invariant Violation\",h}c=e[s](t,s,o,a,null,\"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED\")}catch(u){c=u}c&&!(c instanceof Error)&&(S(i),b(\"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).\",o||\"React class\",a,s,typeof c),S(null)),c instanceof Error&&!(c.message in le)&&(le[c.message]=!0,S(i),b(\"Failed %s type: %s\",a,c.message),S(null))}}}var He=Array.isArray;function W(e){return He(e)}function ze(e){{var t=typeof Symbol==\"function\"&&Symbol.toStringTag,a=t&&e[Symbol.toStringTag]||e.constructor.name||\"Object\";return a}}function qe(e){try{return ue(e),!1}catch{return!0}}function ue(e){return\"\"+e}function me(e){if(qe(e))return b(\"The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.\",ze(e)),ue(e)}var U=g.ReactCurrentOwner,Ge={key:!0,ref:!0,__self:!0,__source:!0},be,he,M;M={};function Ke(e){if(P.call(e,\"ref\")){var t=Object.getOwnPropertyDescriptor(e,\"ref\").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function Xe(e){if(P.call(e,\"key\")){var t=Object.getOwnPropertyDescriptor(e,\"key\").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function Je(e,t){if(typeof e.ref==\"string\"&&U.current&&t&&U.current.stateNode!==t){var a=p(U.current.type);M[a]||(b('Component \"%s\" contains the string ref \"%s\". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',p(U.current.type),e.ref),M[a]=!0)}}function Ze(e,t){{var a=function(){be||(be=!0,b(\"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)\",t))};a.isReactWarning=!0,Object.defineProperty(e,\"key\",{get:a,configurable:!0})}}function Qe(e,t){{var a=function(){he||(he=!0,b(\"%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)\",t))};a.isReactWarning=!0,Object.defineProperty(e,\"ref\",{get:a,configurable:!0})}}var er=function(e,t,a,o,i,l,s){var c={$$typeof:r,type:e,key:t,ref:a,props:s,_owner:l};return c._store={},Object.defineProperty(c._store,\"validated\",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,\"_self\",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(c,\"_source\",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c};function rr(e,t,a,o,i){{var l,s={},c=null,h=null;a!==void 0&&(me(a),c=\"\"+a),Xe(t)&&(me(t.key),c=\"\"+t.key),Ke(t)&&(h=t.ref,Je(t,i));for(l in t)P.call(t,l)&&!Ge.hasOwnProperty(l)&&(s[l]=t[l]);if(e&&e.defaultProps){var u=e.defaultProps;for(l in u)s[l]===void 0&&(s[l]=u[l])}if(c||h){var m=typeof e==\"function\"?e.displayName||e.name||\"Unknown\":e;c&&Ze(s,m),h&&Qe(s,m)}return er(e,c,h,i,o,U.current,s)}}var V=g.ReactCurrentOwner,fe=g.ReactDebugCurrentFrame;function E(e){if(e){var t=e._owner,a=w(e.type,e._source,t?t.type:null);fe.setExtraStackFrame(a)}else fe.setExtraStackFrame(null)}var L;L=!1;function H(e){return typeof e==\"object\"&&e!==null&&e.$$typeof===r}function _e(){{if(V.current){var e=p(V.current.type);if(e)return`\n\nCheck the render method of \\``+e+\"`.\"}return\"\"}}function nr(e){{if(e!==void 0){var t=e.fileName.replace(/^.*[\\\\\\/]/,\"\"),a=e.lineNumber;return`\n\nCheck your code at `+t+\":\"+a+\".\"}return\"\"}}var pe={};function tr(e){{var t=_e();if(!t){var a=typeof e==\"string\"?e:e.displayName||e.name;a&&(t=`\n\nCheck the top-level render call using <`+a+\">.\")}return t}}function Ne(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var a=tr(t);if(pe[a])return;pe[a]=!0;var o=\"\";e&&e._owner&&e._owner!==V.current&&(o=\" It was passed a child from \"+p(e._owner.type)+\".\"),E(e),b('Each child in a list should have a unique \"key\" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',a,o),E(null)}}function ye(e,t){{if(typeof e!=\"object\")return;if(W(e))for(var a=0;a<e.length;a++){var o=e[a];H(o)&&Ne(o,t)}else if(H(e))e._store&&(e._store.validated=!0);else if(e){var i=Ce(e);if(typeof i==\"function\"&&i!==e.entries)for(var l=i.call(e),s;!(s=l.next()).done;)H(s.value)&&Ne(s.value,t)}}}function ar(e){{var t=e.type;if(t==null||typeof t==\"string\")return;var a;if(typeof t==\"function\")a=t.propTypes;else if(typeof t==\"object\"&&(t.$$typeof===F||t.$$typeof===R))a=t.propTypes;else return;if(a){var o=p(t);Le(a,e.props,\"prop\",o,e)}else if(t.PropTypes!==void 0&&!L){L=!0;var i=p(t);b(\"Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?\",i||\"Unknown\")}typeof t.getDefaultProps==\"function\"&&!t.getDefaultProps.isReactClassApproved&&b(\"getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.\")}}function or(e){{for(var t=Object.keys(e.props),a=0;a<t.length;a++){var o=t[a];if(o!==\"children\"&&o!==\"key\"){E(e),b(\"Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.\",o),E(null);break}}e.ref!==null&&(E(e),b(\"Invalid attribute `ref` supplied to `React.Fragment`.\"),E(null))}}function cr(e,t,a,o,i,l){{var s=Be(e);if(!s){var c=\"\";(e===void 0||typeof e==\"object\"&&e!==null&&Object.keys(e).length===0)&&(c+=\" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.\");var h=nr(i);h?c+=h:c+=_e();var u;e===null?u=\"null\":W(e)?u=\"array\":e!==void 0&&e.$$typeof===r?(u=\"<\"+(p(e.type)||\"Unknown\")+\" />\",c=\" Did you accidentally export a JSX literal instead of a component?\"):u=typeof e,b(\"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s\",u,c)}var m=rr(e,t,a,i,l);if(m==null)return m;if(s){var f=t.children;if(f!==void 0)if(o)if(W(f)){for(var v=0;v<f.length;v++)ye(f[v],e);Object.freeze&&Object.freeze(f)}else b(\"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\");else ye(f,e)}return e===k?or(m):ar(m),m}}var sr=cr;q.Fragment=k,q.jsxDEV=sr})()});var Ue=z((Er,je)=>{\"use strict\";je.exports=ve()});var yr={};br(yr,{default:()=>Nr,frontmatter:()=>_r});var n=hr(Ue()),_r={title:\"@upstash/redis\",description:\"A fully typed Redis client built for Upstash Redis and HTTP, perfect for serverless and edge runtimes.\",date:\"2022-03-14\",url:\"https://upstash.com/redis\",repository:\"upstash/upstash-redis\",published:!0};function Fe(d){let r=Object.assign({p:\"p\",code:\"code\",div:\"div\",pre:\"pre\",span:\"span\"},d.components);return(0,n.jsxDEV)(n.Fragment,{children:[(0,n.jsxDEV)(r.p,{children:[\"Upstash is a cloud-based service provider that offers a Redis-compatible service. In addition to that, we have also created an npm package called \",(0,n.jsxDEV)(r.code,{children:\"@upstash/redis\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:11,columnNumber:147},this),\". This package provides a strongly typed Redis client that uses HTTP instead of TCP to communicate with the database, making it perfect for serverless and edge runtimes.\"]},void 0,!0,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:11,columnNumber:1},this),`\n`,(0,n.jsxDEV)(r.p,{children:\"Redis is a popular open-source, in-memory data structure store that can be used as a database, cache, and message broker. It is commonly used for web applications that require fast data access and manipulation. Redis clients communicate with Redis servers using the Redis protocol over TCP/IP.\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:13,columnNumber:1},this),`\n`,(0,n.jsxDEV)(r.p,{children:[\"However, in some cases, TCP is not available. For example, edge functions run on cloud platforms, which often block TCP connections for various reasons. This is where \",(0,n.jsxDEV)(r.code,{children:\"@upstash/redis\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:15,columnNumber:168},this),\" comes in handy. Instead of using TCP, it uses HTTP to communicate with the servers.\"]},void 0,!0,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:15,columnNumber:1},this),`\n`,(0,n.jsxDEV)(r.p,{children:\"The package is designed to be easy to use and provides a simple API for Redis commands. It also includes support for Redis transactions and Lua scripting. It is written in TypeScript, which provides static typing and better code completion in modern editors.\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:17,columnNumber:1},this),`\n`,(0,n.jsxDEV)(r.p,{children:[\"One of the main benefits of using \",(0,n.jsxDEV)(r.code,{children:\"@upstash/redis\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:19,columnNumber:35},this),\" is that it is strongly typed. This means that you get better type checking and error handling in your code. Additionally, the package is designed to be lightweight and optimized for performance. This makes it an excellent choice for applications that require fast data access and manipulation.\"]},void 0,!0,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:19,columnNumber:1},this),`\n`,(0,n.jsxDEV)(r.div,{\"data-rehype-pretty-code-fragment\":\"\",children:(0,n.jsxDEV)(r.pre,{\"data-language\":\"ts\",\"data-theme\":\"default\",children:(0,n.jsxDEV)(r.code,{\"data-language\":\"ts\",\"data-theme\":\"default\",children:[(0,n.jsxDEV)(r.span,{className:\"line\",children:[(0,n.jsxDEV)(r.span,{style:{color:\"#F97583\"},children:\"import\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:1,columnNumber:104},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\" { Redis } \"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:1,columnNumber:146},this),(0,n.jsxDEV)(r.span,{style:{color:\"#F97583\"},children:\"from\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:1,columnNumber:193},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\" \"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:1,columnNumber:233},this),(0,n.jsxDEV)(r.span,{style:{color:\"#9ECBFF\"},children:'\"@upstash/redis\"'},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:1,columnNumber:270},this)]},void 0,!0,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:1,columnNumber:85},this),`\n`,(0,n.jsxDEV)(r.span,{className:\"line\",children:\" \"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:2,columnNumber:1},this),`\n`,(0,n.jsxDEV)(r.span,{className:\"line\",children:[(0,n.jsxDEV)(r.span,{style:{color:\"#F97583\"},children:\"const\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:3,columnNumber:20},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\" \"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:3,columnNumber:61},this),(0,n.jsxDEV)(r.span,{style:{color:\"#79B8FF\"},children:\"redis\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:3,columnNumber:98},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\" \"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:3,columnNumber:139},this),(0,n.jsxDEV)(r.span,{style:{color:\"#F97583\"},children:\"=\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:3,columnNumber:176},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\" \"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:3,columnNumber:213},this),(0,n.jsxDEV)(r.span,{style:{color:\"#F97583\"},children:\"new\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:3,columnNumber:250},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\" \"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:3,columnNumber:289},this),(0,n.jsxDEV)(r.span,{style:{color:\"#B392F0\"},children:\"Redis\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:3,columnNumber:326},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\"({\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:3,columnNumber:367},this)]},void 0,!0,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:3,columnNumber:1},this),`\n`,(0,n.jsxDEV)(r.span,{className:\"line\",children:[(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\" url: <\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:4,columnNumber:20},this),(0,n.jsxDEV)(r.span,{style:{color:\"#B392F0\"},children:\"UPSTASH_REDIS_REST_URL\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:4,columnNumber:67},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\">,\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:4,columnNumber:125},this)]},void 0,!0,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:4,columnNumber:1},this),`\n`,(0,n.jsxDEV)(r.span,{className:\"line\",children:[(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\" token: <\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:5,columnNumber:20},this),(0,n.jsxDEV)(r.span,{style:{color:\"#B392F0\"},children:\"UPSTASH_REDIS_REST_TOKEN\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:5,columnNumber:69},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\">,\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:5,columnNumber:129},this)]},void 0,!0,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:5,columnNumber:1},this),`\n`,(0,n.jsxDEV)(r.span,{className:\"line\",children:(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\"})\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:6,columnNumber:20},this)},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:6,columnNumber:1},this),`\n`,(0,n.jsxDEV)(r.span,{className:\"line\",children:\" \"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:7,columnNumber:1},this),`\n`,(0,n.jsxDEV)(r.span,{className:\"line\",children:(0,n.jsxDEV)(r.span,{style:{color:\"#6A737D\"},children:\"// string\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:8,columnNumber:20},this)},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:8,columnNumber:1},this),`\n`,(0,n.jsxDEV)(r.span,{className:\"line\",children:[(0,n.jsxDEV)(r.span,{style:{color:\"#F97583\"},children:\"await\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:9,columnNumber:20},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\" redis.\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:9,columnNumber:61},this),(0,n.jsxDEV)(r.span,{style:{color:\"#B392F0\"},children:\"set\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:9,columnNumber:104},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\"(\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:9,columnNumber:143},this),(0,n.jsxDEV)(r.span,{style:{color:\"#9ECBFF\"},children:\"'key'\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:9,columnNumber:180},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\", \"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:9,columnNumber:229},this),(0,n.jsxDEV)(r.span,{style:{color:\"#9ECBFF\"},children:\"'value'\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:9,columnNumber:267},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\");\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:9,columnNumber:318},this)]},void 0,!0,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:9,columnNumber:1},this),`\n`,(0,n.jsxDEV)(r.span,{className:\"line\",children:[(0,n.jsxDEV)(r.span,{style:{color:\"#F97583\"},children:\"let\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:10,columnNumber:20},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\" data \"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:10,columnNumber:59},this),(0,n.jsxDEV)(r.span,{style:{color:\"#F97583\"},children:\"=\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:10,columnNumber:101},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\" \"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:10,columnNumber:138},this),(0,n.jsxDEV)(r.span,{style:{color:\"#F97583\"},children:\"await\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:10,columnNumber:175},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\" redis.\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:10,columnNumber:216},this),(0,n.jsxDEV)(r.span,{style:{color:\"#B392F0\"},children:\"get\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:10,columnNumber:259},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\"(\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:10,columnNumber:298},this),(0,n.jsxDEV)(r.span,{style:{color:\"#9ECBFF\"},children:\"'key'\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:10,columnNumber:335},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\");\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:10,columnNumber:384},this)]},void 0,!0,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:10,columnNumber:1},this),`\n`,(0,n.jsxDEV)(r.span,{className:\"line\",children:[(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\"console.\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:11,columnNumber:20},this),(0,n.jsxDEV)(r.span,{style:{color:\"#B392F0\"},children:\"log\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:11,columnNumber:64},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\"(data)\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:11,columnNumber:103},this)]},void 0,!0,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:11,columnNumber:1},this),`\n`,(0,n.jsxDEV)(r.span,{className:\"line\",children:\" \"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:12,columnNumber:1},this),`\n`,(0,n.jsxDEV)(r.span,{className:\"line\",children:[(0,n.jsxDEV)(r.span,{style:{color:\"#F97583\"},children:\"await\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:13,columnNumber:20},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\" redis.\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:13,columnNumber:61},this),(0,n.jsxDEV)(r.span,{style:{color:\"#B392F0\"},children:\"set\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:13,columnNumber:104},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\"(\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:13,columnNumber:143},this),(0,n.jsxDEV)(r.span,{style:{color:\"#9ECBFF\"},children:\"'key2'\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:13,columnNumber:180},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\", \"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:13,columnNumber:230},this),(0,n.jsxDEV)(r.span,{style:{color:\"#9ECBFF\"},children:\"'value2'\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:13,columnNumber:268},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\", {ex: \"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:13,columnNumber:320},this),(0,n.jsxDEV)(r.span,{style:{color:\"#79B8FF\"},children:\"1\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:13,columnNumber:363},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\"});\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:13,columnNumber:400},this)]},void 0,!0,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:13,columnNumber:1},this),`\n`,(0,n.jsxDEV)(r.span,{className:\"line\",children:\" \"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:14,columnNumber:1},this),`\n`,(0,n.jsxDEV)(r.span,{className:\"line\",children:(0,n.jsxDEV)(r.span,{style:{color:\"#6A737D\"},children:\"// sorted set\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:15,columnNumber:20},this)},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:15,columnNumber:1},this),`\n`,(0,n.jsxDEV)(r.span,{className:\"line\",children:[(0,n.jsxDEV)(r.span,{style:{color:\"#F97583\"},children:\"await\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:16,columnNumber:20},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\" redis.\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:16,columnNumber:61},this),(0,n.jsxDEV)(r.span,{style:{color:\"#B392F0\"},children:\"zadd\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:16,columnNumber:104},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\"(\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:16,columnNumber:144},this),(0,n.jsxDEV)(r.span,{style:{color:\"#9ECBFF\"},children:\"'scores'\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:16,columnNumber:181},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\", { score: \"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:16,columnNumber:233},this),(0,n.jsxDEV)(r.span,{style:{color:\"#79B8FF\"},children:\"1\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:16,columnNumber:280},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\", member: \"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:16,columnNumber:317},this),(0,n.jsxDEV)(r.span,{style:{color:\"#9ECBFF\"},children:\"'team1'\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:16,columnNumber:363},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\" })\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:16,columnNumber:414},this)]},void 0,!0,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:16,columnNumber:1},this),`\n`,(0,n.jsxDEV)(r.span,{className:\"line\",children:[(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\"data \"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:17,columnNumber:20},this),(0,n.jsxDEV)(r.span,{style:{color:\"#F97583\"},children:\"=\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:17,columnNumber:61},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\" \"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:17,columnNumber:98},this),(0,n.jsxDEV)(r.span,{style:{color:\"#F97583\"},children:\"await\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:17,columnNumber:135},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\" redis.\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:17,columnNumber:176},this),(0,n.jsxDEV)(r.span,{style:{color:\"#B392F0\"},children:\"zrange\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:17,columnNumber:219},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\"(\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:17,columnNumber:261},this),(0,n.jsxDEV)(r.span,{style:{color:\"#9ECBFF\"},children:\"'scores'\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:17,columnNumber:298},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\", \"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:17,columnNumber:350},this),(0,n.jsxDEV)(r.span,{style:{color:\"#79B8FF\"},children:\"0\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:17,columnNumber:388},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\", \"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:17,columnNumber:425},this),(0,n.jsxDEV)(r.span,{style:{color:\"#79B8FF\"},children:\"100\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:17,columnNumber:463},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\" )\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:17,columnNumber:502},this)]},void 0,!0,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:17,columnNumber:1},this),`\n`,(0,n.jsxDEV)(r.span,{className:\"line\",children:[(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\"console.\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:18,columnNumber:20},this),(0,n.jsxDEV)(r.span,{style:{color:\"#B392F0\"},children:\"log\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:18,columnNumber:64},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\"(data)\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:18,columnNumber:103},this)]},void 0,!0,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:18,columnNumber:1},this),`\n`,(0,n.jsxDEV)(r.span,{className:\"line\",children:\" \"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:19,columnNumber:1},this),`\n`,(0,n.jsxDEV)(r.span,{className:\"line\",children:(0,n.jsxDEV)(r.span,{style:{color:\"#6A737D\"},children:\"// list\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:20,columnNumber:20},this)},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:20,columnNumber:1},this),`\n`,(0,n.jsxDEV)(r.span,{className:\"line\",children:[(0,n.jsxDEV)(r.span,{style:{color:\"#F97583\"},children:\"await\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:21,columnNumber:20},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\" redis.\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:21,columnNumber:61},this),(0,n.jsxDEV)(r.span,{style:{color:\"#B392F0\"},children:\"lpush\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:21,columnNumber:104},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\"(\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:21,columnNumber:145},this),(0,n.jsxDEV)(r.span,{style:{color:\"#9ECBFF\"},children:\"'elements'\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:21,columnNumber:182},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\", \"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:21,columnNumber:236},this),(0,n.jsxDEV)(r.span,{style:{color:\"#9ECBFF\"},children:\"'magnesium'\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:21,columnNumber:274},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\")\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:21,columnNumber:329},this)]},void 0,!0,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:21,columnNumber:1},this),`\n`,(0,n.jsxDEV)(r.span,{className:\"line\",children:[(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\"data \"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:22,columnNumber:20},this),(0,n.jsxDEV)(r.span,{style:{color:\"#F97583\"},children:\"=\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:22,columnNumber:61},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\" \"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:22,columnNumber:98},this),(0,n.jsxDEV)(r.span,{style:{color:\"#F97583\"},children:\"await\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:22,columnNumber:135},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\" redis.\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:22,columnNumber:176},this),(0,n.jsxDEV)(r.span,{style:{color:\"#B392F0\"},children:\"lrange\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:22,columnNumber:219},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\"(\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:22,columnNumber:261},this),(0,n.jsxDEV)(r.span,{style:{color:\"#9ECBFF\"},children:\"'elements'\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:22,columnNumber:298},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\", \"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:22,columnNumber:352},this),(0,n.jsxDEV)(r.span,{style:{color:\"#79B8FF\"},children:\"0\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:22,columnNumber:390},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\", \"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:22,columnNumber:427},this),(0,n.jsxDEV)(r.span,{style:{color:\"#79B8FF\"},children:\"100\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:22,columnNumber:465},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\" )\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:22,columnNumber:504},this)]},void 0,!0,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:22,columnNumber:1},this),`\n`,(0,n.jsxDEV)(r.span,{className:\"line\",children:[(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\"console.\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:23,columnNumber:20},this),(0,n.jsxDEV)(r.span,{style:{color:\"#B392F0\"},children:\"log\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:23,columnNumber:64},this),(0,n.jsxDEV)(r.span,{style:{color:\"#E1E4E8\"},children:\"(data)\"},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:23,columnNumber:103},this)]},void 0,!0,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:23,columnNumber:1},this)]},void 0,!0,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:1,columnNumber:79},this)},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:1,columnNumber:1},this)},void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:21,columnNumber:1},this)]},void 0,!0,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\",lineNumber:1,columnNumber:1},this)}function pr(d={}){let{wrapper:r}=d.components||{};return r?(0,n.jsxDEV)(r,Object.assign({},d,{children:(0,n.jsxDEV)(Fe,d,void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\"},this)}),void 0,!1,{fileName:\"/Users/andreasthomas/github/chronark/chronark.com/content/projects/_mdx_bundler_entry_point-d4020c87-71eb-44e3-b2ae-09bf6c853639.mdx\"},this):Fe(d)}var Nr=pr;return fr(yr);})();\n/*! Bundled license information:\n\nreact/cjs/react-jsx-dev-runtime.development.js:\n (**\n * @license React\n * react-jsx-dev-runtime.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *)\n*/\n;return Component;"
},
"_id": "projects/upstash-redis.mdx",
"_raw": {
"sourceFilePath": "projects/upstash-redis.mdx",
"sourceFileName": "upstash-redis.mdx",
"sourceFileDir": "projects",
"contentType": "mdx",
"flattenedPath": "projects/upstash-redis"
},
"type": "Project",
"path": "/projects/upstash-redis",
"slug": "upstash-redis"
}