A quick reminder (mainly for myself) on how to setup redis on windows
- Get the latest release of redis from https://github.com/MSOpenTech/redis (downloading from github may be tricky, so in order to download https://github.com/MSOpenTech/redis/tree/2.8/bin/release/redis-2.8.12.zip just go to https://github.com/MSOpenTech/redis/raw/2.8/bin/release/redis-2.8.12.zip; 2.8.12 was the current at the time of writing so the links will die at some point); archive contains a step by step guide on how to set up the redis, so you can actually skip reading already ;)
- Extract the executables to some location of choice, for example c:\redis\version
- Create a folder for the db data (by default redis will store the files where the executables reside)
- Copy the redis.windows.conf and rename it as needed - this is a redis instance cfg; some settings worth considering:
Create a service using the redis-server.exe (the service will be configured as autostart and will be launched as "NT AUTHORITY\NetworkService"):
- dir - specifies the db files folder (by default redis will store the files where the executables reside)
- port - the default one is 6379
- maxmemory / maxheap - from the cfg itself: the maxheap flag controls the maximum size of this memory mapped file, as well as the total usable space for the Redis heap. Running Redis without either maxheap or maxmemory will result in a memory mapped file being created that is equal to the size of physical memory; The Redis heap must be larger than the value specified by the maxmemory
redis-server --service-install c:\redis\data\mydb\redis.conf --service-name testRedisService
This is pretty much it. The service should be properly configured and just needs to be started!
A quick reminder on how to use syntax highlighting in be 3.x (and some previous versions too).More...
Sometimes it is useful to have a symbolic link - a link that behaves like it is a resource it links to (more info on symbolic links here).
To create a symbolic link in windows use cmd and mklink command - its help actually says all that is needed ;)
mklink /H d:\link.txt d:\target.txt
will create a hardlink named link.txt on a drive d pointing to d:\target.txt; created link will appear as it was a file, not a link.
Just updated the blog platform to BlogEngine.NET 126.96.36.199
In a very unlikely case one is looking for the previous version it can be found here.
29. September 2012
Some of the manifold related code snippets are now available on github through cartomatic's github page.