{
    "content": [
        {
            "type": "text",
            "text": "# Cache::FileBackend (perldoc)\n\n## NAME\n\nCache::FileBackend -- a filesystem based persistence mechanism\n\n## SYNOPSIS\n\nmy $backend = new Cache::FileBackend( '/tmp/FileCache', 3, 000 );\nSee Cache::Backend for the usage synopsis.\n$backend->store( 'namespace', 'foo', 'bar' );\nmy $bar = $backend->restore( 'namespace', 'foo' );\nmy $sizeofbar = $backend->getsize( 'namespace', 'foo' );\nforeach my $key ( $backend->getkeys( 'namespace' ) )\n{\n$backend->deletekey( 'namespace', $key );\n}\nforeach my $namespace ( $backend->getnamespaces( ) )\n{\n$backend->deletenamespace( $namespace );\n}\n\n## DESCRIPTION\n\nThe FileBackend class is used to persist data to the filesystem\n\n## Sections\n\n- **NAME**\n- **DESCRIPTION**\n- **SYNOPSIS**\n- **METHODS** (1 subsections)\n- **PROPERTIES**\n- **SEE ALSO**\n- **AUTHOR**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Cache::FileBackend",
        "section": "",
        "mode": "perldoc",
        "summary": "Cache::FileBackend -- a filesystem based persistence mechanism",
        "synopsis": "my $backend = new Cache::FileBackend( '/tmp/FileCache', 3, 000 );\nSee Cache::Backend for the usage synopsis.\n$backend->store( 'namespace', 'foo', 'bar' );\nmy $bar = $backend->restore( 'namespace', 'foo' );\nmy $sizeofbar = $backend->getsize( 'namespace', 'foo' );\nforeach my $key ( $backend->getkeys( 'namespace' ) )\n{\n$backend->deletekey( 'namespace', $key );\n}\nforeach my $namespace ( $backend->getnamespaces( ) )\n{\n$backend->deletenamespace( $namespace );\n}",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 20,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 2,
                "subsections": [
                    {
                        "name": "new",
                        "lines": 4
                    }
                ]
            },
            {
                "name": "PROPERTIES",
                "lines": 9,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 6,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Cache::FileBackend -- a filesystem based persistence mechanism\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "The FileBackend class is used to persist data to the filesystem\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "my $backend = new Cache::FileBackend( '/tmp/FileCache', 3, 000 );\n\nSee Cache::Backend for the usage synopsis.\n\n$backend->store( 'namespace', 'foo', 'bar' );\n\nmy $bar = $backend->restore( 'namespace', 'foo' );\n\nmy $sizeofbar = $backend->getsize( 'namespace', 'foo' );\n\nforeach my $key ( $backend->getkeys( 'namespace' ) )\n{\n$backend->deletekey( 'namespace', $key );\n}\n\nforeach my $namespace ( $backend->getnamespaces( ) )\n{\n$backend->deletenamespace( $namespace );\n}\n",
                "subsections": []
            },
            "METHODS": {
                "content": "See Cache::Backend for the API documentation.\n",
                "subsections": [
                    {
                        "name": "new",
                        "content": "Construct a new FileBackend that writes data to the *$root* directory, automatically creates\nsubdirectories *$depth* levels deep, and uses the umask of *$directoryumask* when creating\ndirectories.\n"
                    }
                ]
            },
            "PROPERTIES": {
                "content": "(get|set)root\nThe location of the parent directory in which to store the files\n\n(get|set)depth\nThe branching factor of the subdirectories created to store the files\n\n(get|set)directoryumask\nThe umask to be used when creating directories\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "Cache::Backend, Cache::MemoryBackend, Cache::SharedMemoryBackend\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Original author: DeWitt Clinton <dewitt@unto.net>\n\nLast author: $Author: dclinton $\n\nCopyright (C) 2001-2003 DeWitt Clinton\n",
                "subsections": []
            }
        }
    }
}