{
    "content": [
        {
            "type": "text",
            "text": "# Cache::Memory (perldoc)\n\n## NAME\n\nCache::Memory - Memory based implementation of the Cache interface\n\n## SYNOPSIS\n\nuse Cache::Memory;\nmy $cache = Cache::Memory->new( namespace => 'MyNamespace',\ndefaultexpires => '600 sec' );\nSee Cache for the usage synopsis.\n\n## DESCRIPTION\n\nThe Cache::Memory class implements the Cache interface. This cache stores data on a per-process\nbasis. This is the fastest of the cache implementations, but is memory intensive and data can\nnot be shared between processes. It also does not persist after the process dies. However data\nwill remain in the cache until cleared or it expires. The data will be shared between instances\nof the cache object, a cache object going out of scope will not destroy the data.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **CONSTRUCTOR**\n- **METHODS**\n- **PROPERTIES**\n- **SEE ALSO**\n- **AUTHOR**\n- **COPYRIGHT**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Cache::Memory",
        "section": "",
        "mode": "perldoc",
        "summary": "Cache::Memory - Memory based implementation of the Cache interface",
        "synopsis": "use Cache::Memory;\nmy $cache = Cache::Memory->new( namespace => 'MyNamespace',\ndefaultexpires => '600 sec' );\nSee Cache for the usage synopsis.",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "CONSTRUCTOR",
                "lines": 10,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "PROPERTIES",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 8,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Cache::Memory - Memory based implementation of the Cache interface\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use Cache::Memory;\n\nmy $cache = Cache::Memory->new( namespace => 'MyNamespace',\ndefaultexpires => '600 sec' );\n\nSee Cache for the usage synopsis.\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "The Cache::Memory class implements the Cache interface. This cache stores data on a per-process\nbasis. This is the fastest of the cache implementations, but is memory intensive and data can\nnot be shared between processes. It also does not persist after the process dies. However data\nwill remain in the cache until cleared or it expires. The data will be shared between instances\nof the cache object, a cache object going out of scope will not destroy the data.\n",
                "subsections": []
            },
            "CONSTRUCTOR": {
                "content": "my $cache = Cache::Memory->new( %options )\n\nThe constructor takes cache properties as named arguments, for example:\n\nmy $cache = Cache::Memory->new( namespace => 'MyNamespace',\ndefaultexpires => '600 sec' );\n\nSee 'PROPERTIES' below and in the Cache documentation for a list of all available properties\nthat can be set.\n",
                "subsections": []
            },
            "METHODS": {
                "content": "See 'Cache' for the API documentation.\n",
                "subsections": []
            },
            "PROPERTIES": {
                "content": "Cache::Memory adds the property 'namespace', which allows you to specify a different caching\nstore area to use from the default. All methods will work ONLY on the namespace specified.\n\nmy $ns = $c->namespace();\n$c->setnamespace( $namespace );\n\nFor additional properties, see the 'Cache' documentation.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "Cache\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Chris Leishman <chris@leishman.org>\nBased on work by DeWitt Clinton <dewitt@unto.net>\n",
                "subsections": []
            },
            "COPYRIGHT": {
                "content": "Copyright (C) 2003-2006 Chris Leishman.  All Rights Reserved.\n\nThis module is distributed on an \"AS IS\" basis, WITHOUT WARRANTY OF ANY KIND, either expressed\nor implied. This program is free software; you can redistribute or modify it under the same\nterms as Perl itself.\n\n$Id: Memory.pm,v 1.9 2006/01/31 15:23:58 caleishm Exp $\n",
                "subsections": []
            }
        }
    }
}