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

Cache objects during store #68

Open
GoogleCodeExporter opened this issue Mar 30, 2015 · 2 comments
Open

Cache objects during store #68

GoogleCodeExporter opened this issue Mar 30, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

It would be nice to see a feature which allows objects to be put into the cache 
when being stored, for instance by caching the argument as opposed to the 
return type. 


E.g.,: 


    // Cache the argument, here entity
    @Cacheable(targetElement = TargetElement.Argument);
    public void store(Entity e);

    // Cache the returned object (default behaviour)
    @Cacheable(targetElement = TargetElement.ReturnedObject); 
    public Entity getEntity(String key);


This way we can put the stored objects directly in the cache to allow them to 
be picked up by any get routines sharing the same cache. 


Original issue reported on code.google.com by [email protected] on 10 Mar 2011 at 2:04

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

No branches or pull requests

1 participant