Skip to content
This repository was archived by the owner on Feb 20, 2021. It is now read-only.

Commit def0757

Browse files
committed
[Release] 3.2.100
1 parent f7e6eea commit def0757

File tree

7 files changed

+72
-180
lines changed

7 files changed

+72
-180
lines changed

README.md

+46-174
Original file line numberDiff line numberDiff line change
@@ -1,191 +1,63 @@
1-
This README is just a fast *quick start* document. You can find more detailed documentation at http://redis.io.
1+
[![Windows Status](http://img.shields.io/appveyor/ci/MSOpenTech-lab/redis.svg?style=flat-square)](https://ci.appveyor.com/project/MSOpenTech-lab/redis) [![NuGet version](http://img.shields.io/nuget/v/redis-64.svg?style=flat-square)](http://www.nuget.org/packages/redis-64/) [![Chocolatey version](http://img.shields.io/chocolatey/v/redis-64.svg?style=flat-square)](http://www.chocolatey.org/packages/redis-64/) [![Chocolatey downloads](http://img.shields.io/chocolatey/dt/redis-64.svg?style=flat-square)](http://www.chocolatey.org/packages/redis-64/)
22

3-
What is Redis?
4-
--------------
3+
## Redis on Windows
54

6-
Redis is often referred as a *data structures* server. What this means is that Redis provides access to mutable data structures via a set of commands, which are sent using a *server-client* model with TCP sockets and a simple protocol. So different processes can query and modify the same data structures in a shared way.
5+
- This is a port for Windows based on [Redis](https://github.com/antirez/redis).
6+
- We officially support the 64-bit version only. Although you can build the 32-bit version from source if desired.
7+
- You can download the latest unsigned binaries and the unsigned MSI installer from the [release page](https://github.com/MSOpenTech/redis/releases "Release page").
8+
- For releases prior to 2.8.17.1, the binaries can found in a zip file inside the source archive, under the bin/release folder.
9+
- Signed binaries are available through [NuGet](https://www.nuget.org/packages/Redis-64/) and [Chocolatey](https://chocolatey.org/packages/redis-64).
10+
- Redis can be installed as a Windows Service.
711

8-
Data structures implemented into Redis have a few special properties:
12+
## Windows-specific changes
13+
- There is a replacement for the UNIX fork() API that simulates the copy-on-write behavior using a memory mapped file on 2.8. Version 3.0 is using a similar behavior but dropped the memory mapped file in favor of the system paging file.
14+
- In 3.0 we switch the default memory allocator from dlmalloc to jemalloc that is supposed to do a better job at managing the heap fragmentation.
15+
- Because Redis makes some assumptions about the values of file descriptors, we have built a virtual file descriptor mapping layer.
916

10-
* Redis cares to store them on disk, even if they are always served and modified into the server memory. This means that Redis is fast, but that is also non-volatile.
11-
* Implementation of data structures stress on memory efficiency, so data structures inside Redis will likely use less memory compared to the same data structure modeled using an high level programming language.
12-
* Redis offers a number of features that are natural to find in a database, like replication, tunable levels of durability, cluster, high availability.
17+
## Redis release notes
1318

14-
Another good example is to think of Redis as a more complex version of memcached, where the operations are not just SETs and GETs, but operations to work with complex data types like Lists, Sets, ordered data structures, and so forth.
19+
There are two current active branches: 2.8 and 3.0.
1520

16-
If you want to know more, this is a list of selected starting points:
21+
- Redis on UNIX [2.8 release notes](https://raw.githubusercontent.com/antirez/redis/2.8/00-RELEASENOTES)
22+
- Redis on Windows [2.8 release notes](https://raw.githubusercontent.com/MSOpenTech/redis/2.8/Redis%20on%20Windows%20Release%20Notes.md)
23+
- Redis on UNIX [3.0 release notes](https://raw.githubusercontent.com/antirez/redis/3.0/00-RELEASENOTES)
24+
- Redis on Windows [3.0 release notes](https://raw.githubusercontent.com/MSOpenTech/redis/3.0/Redis%20on%20Windows%20Release%20Notes.md)
1725

18-
* Introduction to Redis data types. http://redis.io/topics/data-types-intro
19-
* Try Redis directly inside your browser. http://try.redis.io
20-
* The full list of Redis commands. http://redis.io/commands
21-
* There is much more inside the Redis official documentation. http://redis.io/documentation
26+
## How to configure and deploy Redis on Windows
2227

23-
Building Redis
24-
--------------
28+
- [Memory Configuration for 2.8](https://github.com/MSOpenTech/redis/wiki/Memory-Configuration "Memory Configuration")
29+
- [Memory Configuration for 3.0](https://github.com/MSOpenTech/redis/wiki/Memory-Configuration-For-Redis-3.0 "Memory Configuration")
30+
- [Windows Service Documentation](https://raw.githubusercontent.com/MSOpenTech/redis/3.0/Windows%20Service%20Documentation.md "Windows Service Documentation")
31+
- [Redis on Windows](https://raw.githubusercontent.com/MSOpenTech/redis/2.8/Redis%20on%20Windows.md "Redis on Windows")
32+
- [Windows Service Documentation](https://raw.githubusercontent.com/MSOpenTech/redis/2.8/Windows%20Service%20Documentation.md "Windows Service Documentation")
2533

26-
Redis can be compiled and used on Linux, OSX, OpenBSD, NetBSD, FreeBSD.
27-
We support big endian and little endian architectures, and both 32 bit
28-
and 64 bit systems.
34+
## How to build Redis using Visual Studio
2935

30-
It may compile on Solaris derived systems (for instance SmartOS) but our
31-
support for this platform is *best effort* and Redis is not guaranteed to
32-
work as well as in Linux, OSX, and \*BSD there.
36+
You can use the free [Visual Studio 2013 Community Edition](http://www.visualstudio.com/products/visual-studio-community-vs). Regardless which Visual Studio edition you use, make sure you have updated to Update 5, otherwise you will get a "illegal use of this type as an expression" error.
3337

34-
It is as simple as:
38+
- Open the solution file msvs\redisserver.sln in Visual Studio, select a build configuration (Debug or Release) and target (x64) then build.
3539

36-
% make
40+
This should create the following executables in the msvs\$(Target)\$(Configuration) folder:
3741

38-
You can run a 32 bit Redis binary using:
42+
- redis-server.exe
43+
- redis-benchmark.exe
44+
- redis-cli.exe
45+
- redis-check-dump.exe
46+
- redis-check-aof.exe
3947

40-
% make 32bit
48+
## Testing
4149

42-
After building Redis is a good idea to test it, using:
50+
To run the Redis test suite some manual work is required:
4351

44-
% make test
52+
- The tests assume that the binaries are in the src folder. Use mklink to create a symbolic link to the files in the msvs\x64\Debug|Release folders. You will
53+
need symbolic links for src\redis-server, src\redis-benchmark, src\redis-check-aof, src\redis-check-dump, src\redis-cli, and src\redis-sentinel.
54+
- The tests make use of TCL. This must be installed separately.
55+
- To run the cluster tests against 3.0, Ruby On Windows is required.
56+
- To run the tests you need to have a Unix shell on your machine, or MinGW tools in your path. To execute the tests, run the following command:
57+
"tclsh8.5.exe tests/test_helper.tcl --clients N", where N is the number of parallel clients . If a Unix shell is not installed you may see the
58+
following error message: "couldn't execute "cat": no such file or directory".
59+
- By default the test suite launches 16 parallel tests, but 2 is the suggested number.
60+
61+
## Code of Conduct
4562

46-
Fixing build problems with dependencies or cached build options
47-
---------
48-
49-
Redis has some dependencies which are included into the `deps` directory.
50-
`make` does not rebuild dependencies automatically, even if something in the
51-
source code of dependencies is changed.
52-
53-
When you update the source code with `git pull` or when code inside the
54-
dependencies tree is modified in any other way, make sure to use the following
55-
command in order to really clean everything and rebuild from scratch:
56-
57-
make distclean
58-
59-
This will clean: jemalloc, lua, hiredis, linenoise.
60-
61-
Also if you force certain build options like 32bit target, no C compiler
62-
optimizations (for debugging purposes), and other similar build time options,
63-
those options are cached indefinitely until you issue a `make distclean`
64-
command.
65-
66-
Fixing problems building 32 bit binaries
67-
---------
68-
69-
If after building Redis with a 32 bit target you need to rebuild it
70-
with a 64 bit target, or the other way around, you need to perform a
71-
`make distclean` in the root directory of the Redis distribution.
72-
73-
In case of build errors when trying to build a 32 bit binary of Redis, try
74-
the following steps:
75-
76-
* Install the packages libc6-dev-i386 (also try g++-multilib).
77-
* Try using the following command line instead of `make 32bit`:
78-
`make CFLAGS="-m32 -march=native" LDFLAGS="-m32"`
79-
80-
Allocator
81-
---------
82-
83-
Selecting a non-default memory allocator when building Redis is done by setting
84-
the `MALLOC` environment variable. Redis is compiled and linked against libc
85-
malloc by default, with the exception of jemalloc being the default on Linux
86-
systems. This default was picked because jemalloc has proven to have fewer
87-
fragmentation problems than libc malloc.
88-
89-
To force compiling against libc malloc, use:
90-
91-
% make MALLOC=libc
92-
93-
To compile against jemalloc on Mac OS X systems, use:
94-
95-
% make MALLOC=jemalloc
96-
97-
Verbose build
98-
-------------
99-
100-
Redis will build with a user friendly colorized output by default.
101-
If you want to see a more verbose output use the following:
102-
103-
% make V=1
104-
105-
Running Redis
106-
-------------
107-
108-
To run Redis with the default configuration just type:
109-
110-
% cd src
111-
% ./redis-server
112-
113-
If you want to provide your redis.conf, you have to run it using an additional
114-
parameter (the path of the configuration file):
115-
116-
% cd src
117-
% ./redis-server /path/to/redis.conf
118-
119-
It is possible to alter the Redis configuration passing parameters directly
120-
as options using the command line. Examples:
121-
122-
% ./redis-server --port 9999 --slaveof 127.0.0.1 6379
123-
% ./redis-server /etc/redis/6379.conf --loglevel debug
124-
125-
All the options in redis.conf are also supported as options using the command
126-
line, with exactly the same name.
127-
128-
Playing with Redis
129-
------------------
130-
131-
You can use redis-cli to play with Redis. Start a redis-server instance,
132-
then in another terminal try the following:
133-
134-
% cd src
135-
% ./redis-cli
136-
redis> ping
137-
PONG
138-
redis> set foo bar
139-
OK
140-
redis> get foo
141-
"bar"
142-
redis> incr mycounter
143-
(integer) 1
144-
redis> incr mycounter
145-
(integer) 2
146-
redis>
147-
148-
You can find the list of all the available commands at http://redis.io/commands.
149-
150-
Installing Redis
151-
-----------------
152-
153-
In order to install Redis binaries into /usr/local/bin just use:
154-
155-
% make install
156-
157-
You can use `make PREFIX=/some/other/directory install` if you wish to use a
158-
different destination.
159-
160-
Make install will just install binaries in your system, but will not configure
161-
init scripts and configuration files in the appropriate place. This is not
162-
needed if you want just to play a bit with Redis, but if you are installing
163-
it the proper way for a production system, we have a script doing this
164-
for Ubuntu and Debian systems:
165-
166-
% cd utils
167-
% ./install_server.sh
168-
169-
The script will ask you a few questions and will setup everything you need
170-
to run Redis properly as a background daemon that will start again on
171-
system reboots.
172-
173-
You'll be able to stop and start Redis using the script named
174-
`/etc/init.d/redis_<portnumber>`, for instance `/etc/init.d/redis_6379`.
175-
176-
Code contributions
177-
---
178-
179-
Note: by contributing code to the Redis project in any form, including sending
180-
a pull request via Github, a code fragment or patch via private email or
181-
public discussion groups, you agree to release your code under the terms
182-
of the BSD license that you can find in the [COPYING][1] file included in the Redis
183-
source distribution.
184-
185-
Please see the [CONTRIBUTING][2] file in this source distribution for more
186-
information.
187-
188-
Enjoy!
189-
190-
[1]: https://github.com/antirez/redis/blob/unstable/COPYING
191-
[2]: https://github.com/antirez/redis/blob/unstable/CONTRIBUTING
63+
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments.

Redis on Windows Release Notes.md

+20
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
MSOpenTech Redis on Windows 3.2 Release Notes
22
=============================================
3+
--[ Redis on Windows 3.2.100 ] Release date: Jul 01 2016
4+
5+
This is the first stable release of Redis on Windows 3.2.
6+
This release is based on antirez/redis/3.2.1 plus some Windows specific fixes.
7+
It has passed all the standard tests but it hasn't been tested in a production
8+
environment. Therefore before considering using this release in production
9+
make sure to test it thoroughly in your own test environment.
10+
11+
Changelog:
12+
13+
- [Portability] strtol and strtoul fixes.
14+
- [Fix] Possible AV during background save.
15+
- [Fix] Use overlapped sockets for cluster failover communication.
16+
- [Cleanup cleanup] Minor changes.
17+
- [Portability] Windows portability fixes.
18+
- Merged tag 3.2.1 from antirez/3.2.
19+
- [Setup] Removed subdir for log, the log is now saved in the main redis dir.
20+
- [Cleanup] Removed unused project.
21+
22+
323
--[ Redis on Windows 3.2.000-preview ] Release date: Jun 14 2016
424

525
This is a technical preview of Redis on Windows 3.2.

appveyor.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
version: 2.8.21.{build}
1+
version: 3.2.100.{build}
22

33
branches:
44
# whitelist
55
only:
6-
- '2.8'
6+
- '3.2'
77
- appveyor
88

99
install:

msvs/msi/RedisMsi/Product.wxs

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<Product Id="*"
2222
Name="Redis on Windows"
2323
Language="1033"
24-
Version="3.2.0000"
24+
Version="3.2.100"
2525
Manufacturer="MSOpenTech"
2626
UpgradeCode="{05410198-7212-4FC4-B7C8-AFEFC3DA0FBC}">
2727
<Package InstallerVersion="200"

msvs/setups/chocolatey/Redis.nuspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<metadata>
44
<id>redis-64</id>
55
<title>Redis 64-bit</title>
6-
<version>3.2.0000-preview</version>
6+
<version>3.2.100</version>
77
<authors>Alexis Campailla, Enrico Giordani, Jonathan Pickett</authors>
88
<owners>Microsoft Open Technologies, Inc.</owners>
99
<description>A porting of Redis on Windows 64-bit.

msvs/setups/nuget/Redis.nuspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<metadata>
44
<id>redis-64</id>
55
<title>Redis 64-bit</title>
6-
<version>3.2.0000-preview</version>
6+
<version>3.2.100</version>
77
<authors>Alexis Campailla, Enrico Giordani, Jonathan Pickett</authors>
88
<owners>Microsoft Open Technologies, Inc.</owners>
99
<description>A porting of Redis on Windows 64-bit.

src/version.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
#define REDIS_VERSION "3.2.1"
1+
#define REDIS_VERSION "3.2.100"

0 commit comments

Comments
 (0)