// bind separate caches for the object and staging databases
bind(ObjectDatabaseCacheFactory.class).in(Scopes.SINGLETON);
bind(StagingDatabaseCacheFactory.class).in(Scopes.SINGLETON);
Decorator objectCachingDecorator = ObjectDatabaseCacheInterceptor
.objects(getProvider(ObjectDatabaseCacheFactory.class));
Decorator indexCachingDecorator = ObjectDatabaseCacheInterceptor
.staging(getProvider(StagingDatabaseCacheFactory.class));
GeogigModule.bindDecorator(binder(), objectCachingDecorator);
GeogigModule.bindDecorator(binder(), indexCachingDecorator);
}