In file-based dependency, the dependency is on a file saved in a disk while in key-based dependency, you depend on another cached item.