> cache_user_relationships = cache.RelationshipCache('default', 'by_id', > User.locality).and_( > cache.RelationshipCache('default', 'by_id', > User.office)).and_( > cache.RelationshipCache('default', 'by_id', > User.groups)).and_( > cache.RelationshipCache('default', 'by_id', > User.roles)).and_( > cache.RelationshipCache('default', 'by_id', > User.localities))
Is it ok that I set the same `namespace` for RelationshipCache? I get that I can invalidate relationship cache with: q = meta.Session.query(User).\ options(cache.FromCache('default', 'by_id')).\ filter_by(username=username, disabled=False) q.invalidate() But it would invalidate all relationship caches? If I only need to invalidate `office` relationship cache I have to set different cache namesapces for all cached relations? Thank you! -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalch...@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.