Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

composite keys #30

Open
stefanpenner opened this issue Aug 27, 2015 · 1 comment
Open

composite keys #30

stefanpenner opened this issue Aug 27, 2015 · 1 comment

Comments

@stefanpenner
Copy link
Owner

something like:

stateFor(['some-string', obj1, obj2, obj3])

and the key derived is basically array.map(Ember.guid).join(0x00)
and the auto-eviction is complicated, but likely possible to derive or some delegation back to the user can be provided.

@thoov
Copy link
Collaborator

thoov commented Sep 28, 2015

after discussion with @stefanpenner today:

Ember.Component.extend({
  firstName: 'bob',

  data: stateFor('state-name', 'primary-key', {
    secondaryKeys: ['foo', 'bar', 1, true],
    scoped: ['firstName']
  })
});

mapKey = GUID('foo') + GUID('bar') + GUID(1) + GUID(true);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants