Class: Care

Inherits:
Object
  • Object
show all
Defined in:
lib/care.rb

Overview

Care (Caching Reader) makes it more efficient to feed a possibly remote IO to parsers that tend to read (and skip) in very small increments. This way, with a remote source that is only available via HTTP, for example, we can have less fetches and have them return more data for one fetch

Defined Under Namespace

Classes: Cache, IOWrapper

Constant Summary collapse

DEFAULT_PAGE_SIZE =

Defines the size of a page in bytes that the Care will prefetch

128 * 1024