Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Arjeno committed Jun 22, 2012
1 parent c3b764f commit 07fc5ef
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Expand Up @@ -26,19 +26,19 @@ This will result in the following expirations:
```ruby
@project.update_attributes({ :title => 'Update!' }) # or @project.destroy

# => Expires /projects
# => Expires: /projects
# => Expires: /projects/1
```

```ruby
@project.create

# => Expires /projects
# => Expires: /projects
```

### Associative caching

Catche supports associative (nested) caching.
Catche supports associative caching.

```ruby
class Task < ActiveRecord::Base
Expand All @@ -57,15 +57,15 @@ This will result in the following expirations:
```ruby
@task.update_attributes({ :title => 'Update!' }) # or @task.destroy

# => Expires /tasks
# => Expires: /tasks
# => Expires: /projects/1/tasks
# => Expires: /projects/1/tasks/1
```

```ruby
@project.tasks.create

# => Expires /tasks
# => Expires: /tasks
# => Expires: /projects/1/tasks
```

Expand All @@ -84,7 +84,7 @@ This will result in the following expirations:
```ruby
@task.update_attributes({ :title => 'Update!' }) # or @task.destroy

# => Expires /tasks
# => Expires: /tasks
# => Expires: /projects/1/tasks
# => Expires: /projects/1/tasks/1
# => Expires: /users/1/tasks
Expand All @@ -94,7 +94,7 @@ This will result in the following expirations:
```ruby
@project.tasks.create

# => Expires /tasks
# => Expires: /tasks
# => Expires: /projects/1/tasks
# => Expires: /users/1/tasks
```
Expand Down

0 comments on commit 07fc5ef

Please sign in to comment.