Replacing a cache service with a database

Why do we use caches at all? Can databases fully replace them?