Skip to content

Instantly share code, notes, and snippets.

title category
Redis Cloud
marketplace

Redis Cloud is a fully-managed cloud service for hosting and running your Redis dataset in a highly-available and scalable manner, with predictable and stable top performance. You can quickly and easily get your apps up and running with Redis Cloud through its add-on for Cloud Foundry, just tell us how much memory you need and get started instantly with your first Redis database.

Redis Cloud offers true high-availability with its in-memory dataset replication and instant auto-failover mechanism, combined with its fast storage engine. You can easily import an existing dataset to any of your Redis Cloud databases, from your S3 account or from any other Redis server. Daily backups are performed automatically and in addition, you can backup your dataset manually at any given time. The service guarantees high performance, as if you were running the strongest cloud instances.

@itamarhaber
itamarhaber / gist:8827869
Last active August 29, 2015 13:56
Poor man's quick n' dirty Redis sync "monitor" in shell
watch "( redis-cli -h source info; redis-cli -h target info ) | grep '^db0:keys'"

Redis Cloud is a fully-managed cloud service for hosting and running your Redis dataset in a highly-available and scalable manner, with predictable and stable top performance. You can quickly and easily get your apps up and running with Redis Cloud through its App Service add-on at Azure Store - just tell us how much memory you need and get started instantly with your first Redis database.

Redis Cloud offers true high-availability with its in-memory dataset replication and instant auto-failover mechanism, combined with its fast storage engine. You can easily import an existing dataset to any of your Redis Cloud databases, from FTP/HTTP server or from any other Redis server. Daily backups are performed automatically and in addition, you can backup your dataset manually at any given time. The service guarantees high performance, as if you were running the strongest cloud instances.

Creating A Redis Cloud Service

Choose the Redis Cloud add-on from the Azure Store's App

Memcached Cloud is a fully-managed service for running your Memcached in a reliable and fail-safe manner. Your dataset is constantly replicated, so if a node fails, an auto-switchover mechanism guarantees data is served without interruption. Memcached Cloud provides various data persistence options as well as remote backups for disaster recovery purposes. You can quickly and easily get your apps up and running with Memcached Cloud through its through its App Service add-on at Azure Store - just tell us how much memory you need and get started instantly with your first Memcached bucket.

A Memcached bucket is created in seconds and from that moment on, all operations are fully-automated. The service completely frees developers from dealing with nodes, clusters, server lists, scaling and failure recovery, while guaranteeing absolutely no data loss.

Creating A Memcached Cloud Service

Choose the Memcached Cloud add-on from the Azure Store's App Service catalog, select

@itamarhaber
itamarhaber / hitman.py
Created April 19, 2014 16:45
Kill idle Redis connections
import redis
import re
idle_max = 300
r = redis.Redis(host="localhost", port=6379, password=None)
l = r.execute_command("client", "list")
pattern = r"addr=(.*?) .*? idle=(\d*)"
regex = re.compile(pattern)
@itamarhaber
itamarhaber / redis_suffix_index.lua
Created May 23, 2014 15:41
Redis suffix index function in Lua. Call with key name of the search terms set and argument to index
redis.call("zadd", KEYS[1], 1, ARGV[1]:reverse())
@itamarhaber
itamarhaber / 00 Turbo Boost WordPress with a Secure Memcached Plugin
Last active August 29, 2015 14:04
Snippets accompanying Turbo Boost WordPress with a Secure Memcached Plugin blog post (http://redislabs.com/blog/turbo-boost-wordpress-with-a-secure-memcached-plugin)
Follow these steps to deploy WordPress, Memcached Cloud and the Memcached Cloud Plugin for Wordpress on Heroku.
@itamarhaber
itamarhaber / statsC50-T-1-pipe-75-D-100-Client1-Test3.txt
Created August 22, 2014 03:28
Unbenchmarking Redis on an EC2 instance
1 Threads
50 Connections per thread
1000000 Requests per thread
Type Ops/sec Hits/sec Misses/sec Latency KB/sec
------------------------------------------------------------------------
Sets 198412.70 --- --- 9.04900 28440.00
Gets 198412.70 198412.70 0.00 9.01200 27471.00
Totals 396825.40 198412.70 0.00 9.03000 22623.00
javascript:{function replaceTokens(e,t){var n=e;for(var r in t){n=n.replace(RegExp("[$]"+r,"g"),t[r])}return n}function copyTweetForOverheard(){var e=$(".js-original-tweet");var t={fullname:$(".fullname.js-action-profile-name.show-popup-with-id",e).text(),username:$(".username",e).text(),text:$(".tweet-text",e).text(),url:window.location.href};var n='\t\t\t\t<p style="margin-top: 8px; margin-bottom: 36px;"><strong style="color: rgb(42, 130, 223); text-decoration: none;"><a href="$url" style="color: rgb(42, 130, 223); text-decoration: none;" target="_blank">$fullname $username:</a></strong>&nbsp;&quot;$text&quot;</p>';alert(replaceTokens(n,t))}copyTweetForOverheard()}
@itamarhaber
itamarhaber / main.py
Created February 18, 2015 03:42
Benchmark different pre-ordered sorted sets insertion times to win the bounty at http://stackoverflow.com/questions/28499034/most-efficient-way-to-insert-an-already-sorted-set-into-redis
import redis
import random
import timeit
key = 'so_bounty'
number = 100
sample = 10000
r = redis.Redis()