NAME

Lingua::ZH::CCDICT::Storage::InMemory - Store the dictionary in memory

USAGE

use Lingua::ZH::CCDICT;

my $dict = Lingua::ZH::CCDICT->new( storage => 'InMemory',
                                    file    => '/path/to/source/ccdict.txt',
                                  );

DESCRIPTION

This module stores the CCDICT dictionary in memory. It uses a rather extraordinary amount of memory in doing so (234MB on my system), but it is fast.

The object can be serialized to disk and reloaded, which is quicker than parsing the dictionary source repeatedly.

For serious usage, the Lingua::ZH::CCDICT::Storage::BerkeleyDB class is strongly recommended.

METHODS

This subclass offers no extra methods.

SEE ALSO

Lingua::ZH::CCDICT