cache<T extends Entity> method

  1. @override
T cache<T extends Entity>(
  1. T entity
)
inherited

Caches the entity. It returns entity directly.

Implementation

@override
T cache<T extends Entity>(T entity)
=> _cache?.put(entity) ?? entity;