Hi, what do you think about implementing Dependenc...
# announcements
r
Hi, what do you think about implementing Dependency injection by type alias?
Copy code
class RedisCache { }
typealias Cache = RedisCache
if we need to chenge it
Copy code
class MongoCache { }
typealias Cache = MongoCache
g
Hah, it’s kinda crazy, but interesting idea