Class: IncludedInMemcached

Class | IncludedInMemcached
In: | lib/spider/included_in_memcached.rb
Parent: | Object

A specialized class using memcached to track items stored. It supports three operations: new, <<, and include? . Together these can be used to add items to the memcache, then determine whether the item has been added.

To use it with Spider use the check_already_seen_with method:

     Spider.start_at('http://example.com/') do |s|
       s.check_already_seen_with IncludedInMemcached.new('localhost:11211')
     end

### Methods

<< include? new

### Public Class methods

new(*a)

Construct a new IncludedInMemcached instance. All arguments here are passed to MemCache (part of the memcache-client gem).

### Public Instance methods

<<(v)

Add an item to the memcache.

include?(v)

True if the item is in the memcache.

[Validate]