Skip to content

Commit

Permalink
Described new cache.remove() required methods in API doc
Browse files Browse the repository at this point in the history
  • Loading branch information
migurski committed Jan 10, 2012
1 parent 72841fe commit b41e05a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions API.html
Original file line number Diff line number Diff line change
Expand Up @@ -1636,8 +1636,8 @@ <h3><a id="custom-caches" name="custom-caches">Caches</a></h3>
</p>

<p>
A cache must provide all of these four methods: <code>lock</code>,
<code>unlock</code>, <code>read</code>, and <code>save</code>.
A cache must provide all of these five methods: <code>lock</code>,
<code>unlock</code>, <code>remove</code>, <code>read</code>, and <code>save</code>.
</p>

<p>
Expand Down Expand Up @@ -1688,6 +1688,10 @@ <h3><a id="custom-caches" name="custom-caches">Caches</a></h3>
# unlock a tile
raise NotImplementedError

def remove(self, layer, coord, format):
# remove a tile
raise NotImplementedError

def read(self, layer, coord, format):
# return raw tile content from cache
raise NotImplementedError
Expand Down

0 comments on commit b41e05a

Please sign in to comment.