Lifetime-based greedy caching approach for content-centric networking