There is two type of locality of reference
1: temporal locality
2: spatial locality
In simple words,
Temporal locality: The concept that a resource that is referenced at one point in time will be referenced again sometime in the near future.
Spatial locality: The concept that the likelihood of referencing a resource is higher if a resource near it was just referenced.