Skip to content

Support custom config args for caches #5

Description

@sgibbons

Add support for dict -> kwargs style config parameters to be passed through to custom cache instantiation via the Expander constructor.

Should work more or less like this for a custom sql-backed cache:

exp = Expander( 
    cache = ( 
        SqlCache, { 
            'server': 'localhost',
            'user': 'some_username',
            'password': 'some_password'
        })
)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions