Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 193
- Log:
First stage commit of Typo 4.1, modified for the ROOL site.
Includes all local modifications but a final pass needs to be
made to delete any files left over from earlier Typo versions
that shouldn't be here anymore. See the 'tags' section of the
repository for a clean Typo 4.1 tree.Note that symlinks to shared files in the RISC OS Open theme
directory have been deliberately included this time around; I
decided that on balance it was better to leave them in as
placeholders, since unlike symlinks in app/views/shared, the
Typo theme structure is not a standard Rails concept.
- Author:
- rool
- Date:
- Wed Apr 04 18:51:02 +0100 2007
- Size:
- 1331 Bytes
1 | = memcache-client |
2 | |
3 | Rubyforge Project: |
4 | |
5 | http://rubyforge.org/projects/rctools/ |
6 | |
7 | == About |
8 | |
9 | memcache-client is a fast memcached client. |
10 | |
11 | == Installing memcache-client |
12 | |
13 | Just install the gem: |
14 | |
15 | $ sudo gem install memcache-client |
16 | |
17 | == Using memcache-client |
18 | |
19 | With one server: |
20 | |
21 | CACHE = MemCache.new 'localhost:11211', :namespace => 'my_namespace' |
22 | |
23 | Or with multiple servers: |
24 | |
25 | CACHE = MemCache.new %w[one.example.com:11211 two.example.com:11211], |
26 | :namespace => 'my_namespace' |
27 | |
28 | See MemCache.new for details. |
29 | |
30 | === Using memcache-client with Rails |
31 | |
32 | Rails will automatically load the memcache-client gem, but you may |
33 | need to uninstall Ruby-memcache, I don't know which one it will pick |
34 | by default. |
35 | |
36 | Add your environment-specific caches to config/environment/*. If you run both |
37 | development and production on the same machine be sure to use different |
38 | namespaces. Be careful when running tests using memcache, you may get strange |
39 | results. It will be less of a headache to simply use a readonly memcache when |
40 | testing. |
41 | |
42 | memcache-client also comes with a wrapper called Cache in memcache_util.rb for |
43 | use with Rails. To use it be sure to assign your memcache connection to |
44 | CACHE. Cache returns nil on all memcache errors so you don't have to rescue |
45 | the errors yourself. It has #get, #put and #delete module functions. |
46 |