LibreCat / Catmandu

Catmandu - a data processing toolkit

Home Page:https://librecat.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Catmandu->store configuration options can only be overwritten one time.

phochste opened this issue · comments

I have a catmandu.yml like:

---
store:
   foo:
      package: ElasticSearch
      options:
              index_name: foo

When in my code do:

  my $store = Catmandu->store('foo');

I get a store pointing with index_name 'foo'. But when later on in my code I change my mind and want to connect to 'bar':

   $store = Catmandu->store('foo', index_name => 'bar');

The store will still point to `index_name' 'foo'. The 'foo' store is cached.