Standardization of "Network Slice", which is an important part of resource allocation among innovations emerging in 5G networks, is considered a vital and important issue in the research community. The network slice to support one or more specific services is modified and changed according to the needs of that service. These slices provide an efficient basis for dividing the infrastructure between different entities, each of which has a slice. In this research, a proposed method for allocation of cache storage resources with a network Slicing scenario in the core network of the fifth generation of communications using game theory and specifically the bankruptcy game in order to improve the quality of the end user's experience has been presented. Game theory is a field of applied mathematics that is developed in the context of economics and studies strategic behavior between rational agents. In general, the Shapley method has improved by 5% in the user satisfaction index compared to the proportional allocation method. In the fairness index, Shapley's allocation method and proportional allocation method have both improved by 27% compared to the minimum-maximum method. In the fairness index of the quality of experience, Shapley's method and proportional allocation method are equal. Shepley's method and proportional allocation compared to the minimum-maximum method have improved 4% in the fairness index of experience quality. The results clearly show the fairness of the Shapley allocation method and proportional allocation, and in some aspects, these two have been different from each other, which has been discussed in detail. End-to-end multi-resource allocation using the bankruptcy game can be mentioned for future work in the existing field.