in reply to Does MooseX::Storage duplicate an object referenced multiple times?

Why don't you give the people at Stackoverflow a little bit more than 20 minutes to reply before reposting your question here?

And if it is so important, what's keeping you from trying things out yourself?

  • Comment on Re: Doess MooseX::Storage duplicate an object referenced multiple times?

Replies are listed 'Best First'.
Re^2: Doess MooseX::Storage duplicate an object referenced multiple times?
by daverave (Scribe) on Oct 25, 2010 at 12:56 UTC
    I am trying. I thought it might be related to the storage method. Tried both YAML, Storable and JSON.

    When I inspect the JSON/YAML files it seems as if the Rep object indeed appears multiple times. I'd expect to appear explicitly only once, then only have JSON/YAML internal references to it.

      Information on how MooseX::Storage handles object references is notably absent. My approach would be to serialize and then deserialize a structure and then check whether you got one or two references what originally was just one reference to a common object.

      Maybe you want KiokuDB, also by at least one author of MooseX::Storage.

        This is what I did, and got two different references (addresses). I am not sure if I am misusing MooseX::Storage or if its simply not supported by it.