{"_id":"56ecd4f37f94882900591943","project":"56e4c56bcc9b140e003e86a8","parentDoc":null,"version":{"_id":"56e4c56ccc9b140e003e86ab","__v":4,"hasDoc":true,"project":"56e4c56bcc9b140e003e86a8","hasReference":true,"createdAt":"2016-03-13T01:42:04.131Z","releaseDate":"2016-03-13T01:42:04.131Z","categories":["56e4c56ccc9b140e003e86ac","56e5e17fd6d5513200761165","56e5e2acd1303329002ea781","56ec6dc12400d20e0075ba21"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"__v":25,"githubsync":"","category":{"_id":"56e5e2acd1303329002ea781","project":"56e4c56bcc9b140e003e86a8","pages":["56ec672c2400d20e0075ba0c","56ec679a3b656b0e00d861d1","56ec67de04e8940e009664f2","56ecc61d849b230e00df43f3","56ecce4c1484f1170021d57d","56ecd4f37f94882900591943"],"version":"56e4c56ccc9b140e003e86ab","__v":6,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-03-13T21:59:08.172Z","from_sync":false,"order":1,"slug":"installation","title":"Administrator Guide"},"user":"56e4c5462d90970e00af1af3","updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-03-19T04:26:27.143Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":3,"body":"A Redis instance is required by Requarks for multiple purposes:\n\n- User Session store\n- Cache for frequent queries\n- Application data cache\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"What is Redis?\"\n}\n[/block]\n\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/2CpYjlN7TBNGODEMiEgk_1024px-Redis_Logo.svg.png\",\n        \"1024px-Redis_Logo.svg.png\",\n        \"1024\",\n        \"342\",\n        \"#a41c13\",\n        \"\"\n      ],\n      \"sizing\": \"80\"\n    }\n  ]\n}\n[/block]\n[Redis](http://redis.io/) is an open source, in-memory data structure store, used as database, cache and message broker. It's insanely fast for storing and fetching temporary data and make the site feel more responsive.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Solutions\"\n}\n[/block]\nYou can either host Redis yourself (don't worry, it's easy!) or use a cloud-based provider, e.g.:\n\n- [Azure Redis Cache](https://azure.microsoft.com/en-us/services/cache/)\n- [RedisLabs](https://redislabs.com/)\n- [Amazon ElastiCache](https://aws.amazon.com/elasticache/)\n[block:callout]\n{\n  \"type\": \"success\",\n  \"body\": \"If you're new to Redis, you might wonder why the capacities offered by cloud providers are so small. While databases can grow in the gigabytes, Redis cache instances usually stay in the megabytes range. Keep in mind that we only store small, temporary data in Redis. Therefore, there's no large capacity requirements in this case.\\n\\n500 MB - 1GB should be enough for users.\",\n  \"title\": \"Wait a minute...\"\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Geography Considerations\",\n  \"body\": \"If using a cloud-based Redis service, it is **highly recommended** to create Redis instance in the same region as where Requarks is hosted. If Requarks is hosted in another location, use the closest region.\"\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Installation\"\n}\n[/block]\nIf you decide to host Redis on your own server(s), go the Redis website and [download the latest build](http://redis.io/download).\n\nNote that while Redis is linux-based, Microsoft provides an [official port](https://github.com/MSOpenTech/redis) which can be installed on Windows.\n\nFollow the instructions provided on the respective download pages to get it up and running. You should be up and running in a matter of minutes.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Frequently Asked Questions\"\n}\n[/block]\n### What is the standard port for Redis?\n\nRedis usually listens to port 6379 for non-SSL and port 6380 for SSL connections.\n\n### Is memcached supported? Why not use memcached instead?\n\nShort answer: No. Memcached, while relevant in some applications, is old and doesn't provide the same functionalities and features available in Redis.","excerpt":"","slug":"cache","type":"basic","title":"Cache"}
A Redis instance is required by Requarks for multiple purposes: - User Session store - Cache for frequent queries - Application data cache [block:api-header] { "type": "basic", "title": "What is Redis?" } [/block] [block:image] { "images": [ { "image": [ "https://files.readme.io/2CpYjlN7TBNGODEMiEgk_1024px-Redis_Logo.svg.png", "1024px-Redis_Logo.svg.png", "1024", "342", "#a41c13", "" ], "sizing": "80" } ] } [/block] [Redis](http://redis.io/) is an open source, in-memory data structure store, used as database, cache and message broker. It's insanely fast for storing and fetching temporary data and make the site feel more responsive. [block:api-header] { "type": "basic", "title": "Solutions" } [/block] You can either host Redis yourself (don't worry, it's easy!) or use a cloud-based provider, e.g.: - [Azure Redis Cache](https://azure.microsoft.com/en-us/services/cache/) - [RedisLabs](https://redislabs.com/) - [Amazon ElastiCache](https://aws.amazon.com/elasticache/) [block:callout] { "type": "success", "body": "If you're new to Redis, you might wonder why the capacities offered by cloud providers are so small. While databases can grow in the gigabytes, Redis cache instances usually stay in the megabytes range. Keep in mind that we only store small, temporary data in Redis. Therefore, there's no large capacity requirements in this case.\n\n500 MB - 1GB should be enough for users.", "title": "Wait a minute..." } [/block] [block:callout] { "type": "info", "title": "Geography Considerations", "body": "If using a cloud-based Redis service, it is **highly recommended** to create Redis instance in the same region as where Requarks is hosted. If Requarks is hosted in another location, use the closest region." } [/block] [block:api-header] { "type": "basic", "title": "Installation" } [/block] If you decide to host Redis on your own server(s), go the Redis website and [download the latest build](http://redis.io/download). Note that while Redis is linux-based, Microsoft provides an [official port](https://github.com/MSOpenTech/redis) which can be installed on Windows. Follow the instructions provided on the respective download pages to get it up and running. You should be up and running in a matter of minutes. [block:api-header] { "type": "basic", "title": "Frequently Asked Questions" } [/block] ### What is the standard port for Redis? Redis usually listens to port 6379 for non-SSL and port 6380 for SSL connections. ### Is memcached supported? Why not use memcached instead? Short answer: No. Memcached, while relevant in some applications, is old and doesn't provide the same functionalities and features available in Redis.