{
    "content": [
        {
            "type": "text",
            "text": "# Cache::SharedMemoryCache (info)\n\n## NAME\n\nCache::SharedMemoryCache -- extends the MemoryCache.\n\n## SYNOPSIS\n\nuse Cache::SharedMemoryCache;\nmy %cacheoptions= ( 'namespace' => 'MyNamespace',\n'defaultexpiresin' => 600 );\nmy $sharedmemorycache =\nnew Cache::SharedMemoryCache( \\%cacheoptions ) or\ncroak( \"Couldn't instantiate SharedMemoryCache\" );\n\n## DESCRIPTION\n\nThe SharedMemoryCache extends the MemoryCache class and binds the data\nstore to shared memory so that separate process can use the same cache.\n\n## Sections\n\n- **Cache::SharedMemoryCacUserpContributed Perl DocumCache::SharedMemoryCache(3pm)**\n- **NAME**\n- **DESCRIPTION**\n- **SYNOPSIS**\n- **METHODS**\n- **OPTIONS**\n- **PROPERTIES**\n- **SEE ALSO**\n- **AUTHOR**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Cache::SharedMemoryCache",
        "section": "",
        "mode": "info",
        "summary": "Cache::SharedMemoryCache -- extends the MemoryCache.",
        "synopsis": "use Cache::SharedMemoryCache;\nmy %cacheoptions= ( 'namespace' => 'MyNamespace',\n'defaultexpiresin' => 600 );\nmy $sharedmemorycache =\nnew Cache::SharedMemoryCache( \\%cacheoptions ) or\ncroak( \"Couldn't instantiate SharedMemoryCache\" );",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "Cache::SharedMemoryCacUserpContributed Perl DocumCache::SharedMemoryCache(3pm)",
                "lines": 1,
                "subsections": []
            },
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 20,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 9,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "PROPERTIES",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 7,
                "subsections": []
            }
        ],
        "sections": {
            "Cache::SharedMemoryCacUserpContributed Perl DocumCache::SharedMemoryCache(3pm)": {
                "content": "",
                "subsections": []
            },
            "NAME": {
                "content": "Cache::SharedMemoryCache -- extends the MemoryCache.\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "The SharedMemoryCache extends the MemoryCache class and binds the data\nstore to shared memory so that separate process can use the same cache.\n\nThe official recommendation is now to use FileCache instead of\nSharedMemoryCache.  The reasons for this include:\n\n1) FileCache provides equal or better performance in all cases that\nwe've been able to test.  This is due to all modern OS's ability to\nbuffer and cache file system accesses very well.\n\n2) FileCache has no real limits on cached object size or the number of\ncached objects, whereas the SharedMemoryCache has limits, and rather\nlow ones at that.\n\n3) FileCache works well on every OS, whereas the SharedMemoryCache\nworks only on systems that support IPC::ShareLite.  And IPC::ShareLite\nis an impressive effort -- but think about how hard it is to get shared\nmemory working properly on *one* system.  Now imagine writing a wrapper\naround shared memory for many operating systems.\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use Cache::SharedMemoryCache;\n\nmy %cacheoptions= ( 'namespace' => 'MyNamespace',\n'defaultexpiresin' => 600 );\n\nmy $sharedmemorycache =\nnew Cache::SharedMemoryCache( \\%cacheoptions ) or\ncroak( \"Couldn't instantiate SharedMemoryCache\" );\n",
                "subsections": []
            },
            "METHODS": {
                "content": "See Cache::Cache for the API documentation.\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "See Cache::Cache for the standard options.\n",
                "subsections": []
            },
            "PROPERTIES": {
                "content": "See Cache::Cache for the default properties.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "Cache::Cache, Cache::MemoryCache\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Original author: DeWitt Clinton <dewitt@unto.net>\n\nLast author:     $Author: dclinton $\n\nCopyright (C) 2001-2003 DeWitt Clinton\n\nperl v5.20.2                      2014-09-17     Cache::SharedMemoryCache(3pm)",
                "subsections": []
            }
        }
    }
}